Telegram Bot API webhook
curl --request POST \
--url https://api.hoox.sh/telegram/{secret} \
--header 'Content-Type: application/json' \
--data '
{
"update_id": 123456789,
"message": {
"message_id": 1,
"from": {
"id": 987654321,
"is_bot": false,
"first_name": "Trader"
},
"chat": {
"id": 987654321,
"type": "private"
},
"date": 1779261050,
"text": "/status"
}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
update_id: 123456789,
message: {
message_id: 1,
from: {id: 987654321, is_bot: false, first_name: 'Trader'},
chat: {id: 987654321, type: 'private'},
date: 1779261050,
text: '/status'
}
})
};
fetch('https://api.hoox.sh/telegram/{secret}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hoox.sh/telegram/{secret}"
payload = {
"update_id": 123456789,
"message": {
"message_id": 1,
"from": {
"id": 987654321,
"is_bot": False,
"first_name": "Trader"
},
"chat": {
"id": 987654321,
"type": "private"
},
"date": 1779261050,
"text": "/status"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}Telegram
Telegram Bot API webhook
Webhook URL configured with Telegram via setWebhook. The
{secret} path parameter must match the
TELEGRAM_WEBHOOK_SECRET binding; otherwise the request is
rejected with 401. Receives interactive update payloads
(messages, callback queries, inline queries) and routes them
to the bot’s command dispatcher.
POST
/
telegram
/
{secret}
Telegram Bot API webhook
curl --request POST \
--url https://api.hoox.sh/telegram/{secret} \
--header 'Content-Type: application/json' \
--data '
{
"update_id": 123456789,
"message": {
"message_id": 1,
"from": {
"id": 987654321,
"is_bot": false,
"first_name": "Trader"
},
"chat": {
"id": 987654321,
"type": "private"
},
"date": 1779261050,
"text": "/status"
}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
update_id: 123456789,
message: {
message_id: 1,
from: {id: 987654321, is_bot: false, first_name: 'Trader'},
chat: {id: 987654321, type: 'private'},
date: 1779261050,
text: '/status'
}
})
};
fetch('https://api.hoox.sh/telegram/{secret}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hoox.sh/telegram/{secret}"
payload = {
"update_id": 123456789,
"message": {
"message_id": 1,
"from": {
"id": 987654321,
"is_bot": False,
"first_name": "Trader"
},
"chat": {
"id": 987654321,
"type": "private"
},
"date": 1779261050,
"text": "/status"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}{
"success": false,
"requestId": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"error": "Invalid JSON payload structure."
}Last modified on June 17, 2026
⌘I