Telegram Bot API

getChatShareThemeBackdrops

카테고리: 채팅 · Bot API 10.5 · 공식 문서

버전 기록: Bot API 10.4에서 추가됨

링크 공유 화면 테마의 배경을 반환합니다 (Bot API 10.4).

반환값: 성공 시 반환값: ChatShareThemeBackdrops.

매개변수

이 메서드에는 매개변수가 없습니다. 봇 토큰만 있으면 바로 호출할 수 있습니다.

요청 예제

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

단계별 가이드: 텔레그램 봇 만들기: @BotFather로 생성하고 첫 메시지 보내기