Telegram Bot API

getChatShareThemeBackdrops

Categoría: Chat · Bot API 10.5 · Documentación oficial

Historial de versiones: Agregado en la Bot API 10.4

Devuelve los fondos del tema de la pantalla para compartir enlaces (Bot API 10.4).

Devuelve: Si la llamada tiene éxito, devuelve ChatShareThemeBackdrops.

Parámetros

Este método no tiene parámetros: solo llámalo con el token de tu bot.

Ejemplo de solicitud

curl

curl -s "https://api.telegram.org/bot$TOKEN/getChatShareThemeBackdrops"

Python

import requests

TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.get(f"https://api.telegram.org/bot{TOKEN}/getChatShareThemeBackdrops", timeout=30)
print(resp.json())

JavaScript

const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/getChatShareThemeBackdrops`);
console.log(await res.json());

Guía paso a paso: Cómo crear un bot en Telegram paso a paso: de BotFather a tu primer mensaje