Actions101
- Bot Actions
- Chat Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member Count
- Get Chat Member
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Administrator Custom Title
- Set Chat Permissions
- Export Chat Invite Link
- Create Chat Invite Link
- Edit Chat Invite Link
- Revoke Chat Invite Link
- Approve Chat Join Request
- Decline Chat Join Request
- Set Chat Photo
- Delete Chat Photo
- Set Chat Title
- Set Chat Description
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Leave Chat
- Set Chat Menu Button
- Get Chat Menu Button
- Set Chat Sticker Set
- Delete Chat Sticker Set
- File Actions
- Forum Actions
- Game Actions
- Inline Actions
- Message Actions
- Send Message
- Forward Message
- Copy Message
- Send Photo
- Send Audio
- Send Document
- Send Video
- Send Animation
- Send Voice
- Send Video Note
- Send Media Group
- Send Location
- Send Venue
- Send Contact
- Send Poll
- Send Dice
- Send Chat Action
- Edit Message Text
- Edit Message Caption
- Edit Message Media
- Edit Message Reply Markup
- Edit Message Live Location
- Stop Message Live Location
- Stop Poll
- Delete Message
- Delete Messages
- Payment Actions
- Sticker Actions
- Update Actions
- Webhook Actions
Webhook → Set Webhook
AI-generatedSummary
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.