Actions72
- Messages Actions
- Bots Actions
- Updates Actions
- Chats Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member
- Get Chat Member Count
- Leave Chat
- Set Chat Title
- Set Chat Description
- Set Chat Photo
- Delete Chat Photo
- 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 Administrator Custom Title
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Sticker Set
- Delete Chat Sticker Set
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Files Actions
- Inline Queries Actions
- Callback Queries Actions
Overview
The "Stop Poll" operation in the Messages resource of this Telegram node allows users to stop an active poll message in a specified chat. This is useful when you want to programmatically end a poll that was previously sent, preventing further votes and optionally providing final results.
Common scenarios include:
- Automatically closing polls after a certain time or event.
- Managing interactive sessions where polls are used for feedback or voting.
- Moderating group chats by ending polls once a decision is made.
For example, if you have a Telegram bot running a poll in a group chat, you can use this operation to stop the poll at a scheduled time or based on workflow logic in n8n.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier for the target Telegram chat where the poll is running. |
| Message ID | The identifier of the specific message containing the poll to be stopped. |
Output
The output JSON contains the response from the Telegram API after attempting to stop the poll. Typically, this includes details about the stopped poll such as its final state and results.
If the operation succeeds, the output confirms the poll has been stopped and may include the poll's final data.
No binary data output is involved in this operation.
Dependencies
- Requires an active Telegram Bot API token configured as credentials in n8n.
- Requires a valid subscription and API key for the external "N8N Tools API" service, which validates usage before forwarding requests to Telegram.
- The node uses HTTP requests to communicate with both the N8N Tools API and Telegram Bot API endpoints.
Troubleshooting
- Invalid subscription or API key error: If you receive errors indicating invalid subscription or API key, verify your API key credential for the external validation service is correct and active.
- Missing or incorrect Chat ID or Message ID: Ensure that the Chat ID and Message ID correspond exactly to the chat and poll message you intend to stop.
- Permission errors: The bot must have appropriate permissions in the chat to manage polls; otherwise, Telegram will reject the request.
- Unknown operation error: This would indicate a misconfiguration in the node's operation parameter; ensure "stopPoll" is selected under the Messages resource.