N8N Tools Telegram icon

N8N Tools Telegram

Interact with Telegram Bot API

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.

Links and References

Discussion