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 node "N8N Tools Telegram" enables interaction with the Telegram Bot API, allowing automation workflows to send, edit, and manage messages and other Telegram entities. Specifically, for the Messages resource and the Edit Message Reply Markup operation, this node edits the inline keyboard or reply markup of an existing message in a Telegram chat.
This operation is useful when you want to dynamically update the buttons or interactive elements attached to a message after it has been sent. For example, you might want to change the options presented to users based on their previous interactions or update the interface without sending a new message.
Practical examples include:
- Updating a poll's answer buttons.
- Changing navigation buttons in a bot conversation.
- Removing or modifying inline buttons after a user action.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier for the target Telegram chat where the message exists. |
| Message ID | The identifier of the specific Telegram message whose reply markup you want to edit. |
| Message Data | JSON object containing the new reply markup data to apply to the message. |
Details on "Message Data"
- This property expects a JSON string representing the reply markup structure as defined by the Telegram Bot API.
- It typically includes fields like
inline_keyboardwhich define the layout and actions of buttons.
Output
- The output is a JSON object representing the response from the Telegram Bot API after editing the message reply markup.
- This usually contains the updated message object reflecting the changes made.
- The node does not output binary data for this operation.
Dependencies
- Requires a valid Telegram Bot API token configured as credentials in n8n.
- Requires access to the "N8N Tools API" service for subscription validation via an API key credential.
- The node makes HTTP requests to the Telegram Bot API endpoints through an internal helper class.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error about invalid subscription or API key, verify that your API key credential for the external validation service is correct and active.
- Unknown operation error: Ensure the operation name is correctly set to "editMessageReplyMarkup" under the Messages resource.
- Malformed JSON in Message Data: The "Message Data" must be a valid JSON string. Invalid JSON will cause parsing errors. Use a JSON validator before inputting.
- Telegram API errors: Errors returned from Telegram (e.g., message not found, chat not found) indicate issues with the provided Chat ID or Message ID. Double-check these values.
- Permission errors: The bot must have permission to edit messages in the target chat.
Links and References
- Telegram Bot API - EditMessageReplyMarkup
- Telegram Inline Keyboards
- n8n Documentation - Creating Custom Nodes
This summary focuses on the "Edit Message Reply Markup" operation within the "Messages" resource of the N8N Tools Telegram node, describing its purpose, inputs, outputs, dependencies, and common troubleshooting tips.