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 via HTTPS POST requests.
Inputs
- Webhook URL (required) — HTTPS URL to which Telegram will send updates.
- Additional Fields — Optional parameters including fixed IP address for webhook requests, maximum allowed simultaneous HTTPS connections (1-100), JSON array of update types to receive, option to drop all pending updates, and a secret token for 'X-Telegram-Bot-Api-Secret-Token' header.
Output shape
a single JSON object containing the Telegram API response indicating success or failure of the webhook setup.
The response typically contains a boolean 'result' field indicating if setting the webhook was successful. Additional response fields depend on the Telegram API.
Examples
Example 1: Set webhook with URL only
Provide the HTTPS URL for webhook_url parameter and leave additional fields empty or default.
Example 2: Set webhook with custom max connections and secret token
Specify webhook_url along with max_connections and secret_token in additional fields to configure webhook with limits and secure secret token.