Telegram Bot API

getChatShareThemeBackdrops

Category: Chat · Bot API 10.5 · Official documentation

Version history: Added in Bot API 10.4

Returns backdrops for the theme of the link sharing screen (Bot API 10.4).

Returns: On success, returns ChatShareThemeBackdrops.

Parameters

This method has no parameters — just call it with your bot token.

Example request

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());

Step-by-step guide: How to Create a Telegram Bot: Step by Step with BotFather and Python