getManagedBotAccessSettings
Yönetilen botun erişim ayarlarını alır (Bot API 10.0).
Dönüş değeri: Başarılı olduğunda BotAccessSettings döndürür.
Parametreler
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
user_id | Integer | Evet | Yönetilen bot ID'si |
Örnek istek
curl
curl -s -X POST "https://api.telegram.org/bot$TOKEN/getManagedBotAccessSettings" \
-H "Content-Type: application/json" \
-d '{"user_id":123456789}'
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.post(
f"https://api.telegram.org/bot{TOKEN}/getManagedBotAccessSettings",
json={
"user_id": 123456789
},
timeout=30,
)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/getManagedBotAccessSettings`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"user_id": 123456789
}),
});
console.log(await res.json());
Adım adım rehber: Telegram bot nasıl yapılır? BotFather ile adım adım bot oluşturma
İlgili metotlar
getMeBot bilgilerini döndürür.getMyCommandsBotun mevcut komut listesini döndürür.setMyCommandsBotun komut listesini ayarlar.deleteMyCommandsBot komutlarını siler.getMyNameBotun adını döndürür.setMyNameBotun adını ayarlar.getMyDescriptionBotun açıklamasını döndürür.setMyDescriptionBotun açıklamasını ayarlar.getMyShortDescriptionBotun kısa açıklamasını döndürür.setMyShortDescriptionBotun kısa açıklamasını ayarlar.setMyProfilePhotoBotun profil fotoğrafını ayarlar.removeMyProfilePhotoBotun profil fotoğrafını kaldırır.