getMyDescription
Trả về mô tả của bot.
Giá trị trả về: Nếu thành công, trả về BotDescription.
Tham số
| Tham số | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
language_code | String | Tùy chọn | Mã ngôn ngữ (thẻ IETF) |
Ví dụ request
curl
curl -s "https://api.telegram.org/bot$TOKEN/getMyDescription"
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.get(f"https://api.telegram.org/bot{TOKEN}/getMyDescription", timeout=30)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/getMyDescription`);
console.log(await res.json());
Hướng dẫn từng bước: Cách tạo bot Telegram từ A đến Z: BotFather, token và tin nhắn đầu tiên
Phương thức liên quan
getMeTrả về thông tin của bot.getMyCommandsTrả về danh sách lệnh hiện tại của bot.setMyCommandsĐặt danh sách lệnh của bot.deleteMyCommandsXóa các lệnh của bot.getMyNameTrả về tên của bot.setMyNameĐặt tên cho bot.setMyDescriptionĐặt mô tả cho bot.getMyShortDescriptionTrả về mô tả ngắn của bot.setMyShortDescriptionĐặt mô tả ngắn cho bot.setMyProfilePhotoĐặt ảnh đại diện cho bot.removeMyProfilePhotoXóa ảnh đại diện của bot.getUserProfilePhotosTrả về ảnh đại diện của người dùng.