Telegram Bot API
🌐 Türkçe

sendChatJoinRequestWebApp

Kategori: Callback'ler · Bot API 10.3 · Resmi dokümantasyon

Sohbete katılma isteği sorgusu için Mini App gösterir (Bot API 10.1).

Dönüş değeri: Başarılı olduğunda True döndürür.

Parametreler

ParametreTürZorunluAçıklama
chat_join_request_query_idStringEvetKatılma isteği sorgusu ID'si
web_app_urlStringEvetAçılacak Mini App'in HTTPS URL'si

Parametre açıklamaları kısa özetlerdir; tam metin için resmi dokümantasyona bakın.

Örnek istek

curl

curl -s -X POST "https://api.telegram.org/bot$TOKEN/sendChatJoinRequestWebApp" \
  -H "Content-Type: application/json" \
  -d '{
  "chat_join_request_query_id": "QUERY_ID",
  "web_app_url": "https://example.com/app"
}'

Python

import requests

TOKEN = "123456789:AAEexampleTokenReplaceWithYours"
resp = requests.post(
    f"https://api.telegram.org/bot{TOKEN}/sendChatJoinRequestWebApp",
    json={
        "chat_join_request_query_id": "QUERY_ID",
        "web_app_url": "https://example.com/app"
    },
    timeout=30,
)
print(resp.json())

JavaScript

const TOKEN = "123456789:AAEexampleTokenReplaceWithYours";
const res = await fetch(`https://api.telegram.org/bot${TOKEN}/sendChatJoinRequestWebApp`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "chat_join_request_query_id": "QUERY_ID",
    "web_app_url": "https://example.com/app"
  }),
});
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