getBusinessConnection
İşletme bağlantısı bilgilerini alır.
Dönüş değeri: Başarılı olduğunda BusinessConnection döndürür.
Parametreler
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
business_connection_id | String | Evet | İşletme bağlantısı ID'si |
Örnek istek
curl
curl -s -X POST "https://api.telegram.org/bot$TOKEN/getBusinessConnection" \
-H "Content-Type: application/json" \
-d '{"business_connection_id":"BUSINESS_CONNECTION_ID"}'
Python
import requests
TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.post(
f"https://api.telegram.org/bot{TOKEN}/getBusinessConnection",
json={
"business_connection_id": "BUSINESS_CONNECTION_ID"
},
timeout=30,
)
print(resp.json())
JavaScript
const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/getBusinessConnection`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"business_connection_id": "BUSINESS_CONNECTION_ID"
}),
});
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
getCustomEmojiStickersÖzel emoji çıkartmalarının bilgilerini döndürür.getUserChatBoostsKullanıcının sohbet takviyelerini döndürür.savePreparedInlineMessageHazırlanmış satır içi mesajı kaydeder.verifyUserBir kuruluş adına kullanıcıyı doğrular.verifyChatBir kuruluş adına sohbeti doğrular.removeUserVerificationKullanıcı doğrulamasını kaldırır.removeChatVerificationSohbet doğrulamasını kaldırır.setUserEmojiStatusKullanıcının emoji durumunu ayarlar.savePreparedKeyboardButtonMini App'ler için klavye düğmesini kaydeder.setPassportDataErrorsKullanıcıyı Telegram Passport hataları hakkında bilgilendirir.