Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Webhook → Set Webhook

AI-generated

Summary

Set the webhook URL for the Telegram Bot to receive updates by specifying the HTTPS URL and optional webhook parameters.

Inputs

  • Webhook URL (required) — The HTTPS URL where Telegram will send updates to your bot.
  • Additional Fields — Optional parameters including IP address to send webhook requests from, max connections for HTTPS, allowed update types, whether to drop pending updates, and a secret token header for added security.

Output shape

a JSON object representing the Telegram API's response to setting the webhook

The response includes the 'ok' status and a 'result' boolean indicating success. Errors trigger exceptions handled by the node.

Examples

Example 1: Set the webhook URL to a new HTTPS endpoint with optional parameters like max connections and allowed updates.

Provide the Webhook URL (required) and optionally set fields such as IP Address, Max Connections, Allowed Updates (JSON array), Drop Pending Updates (boolean), or Secret Token.

Links

Discussion