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" integrates with the Telegram Bot API, enabling automation workflows to interact with Telegram chats, messages, bots, files, updates, inline queries, and callback queries. Specifically, for the Chats resource and the Edit Chat Invite Link operation, this node allows you to modify an existing chat invite link in a Telegram chat.
This is useful when you want to update properties of an invite link such as its expiration date, member limit, or other settings without creating a new link. For example, you might extend the validity of an invite link or change its usage restrictions dynamically based on your workflow logic.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier for the Telegram chat where the invite link exists (Telegram Chat ID). Required. |
| Options | Additional options for editing the invite link, provided as a JSON object. These options correspond to the parameters supported by the Telegram Bot API's editChatInviteLink method, such as name, expire_date, member_limit, etc. |
Output
The node outputs a JSON object representing the response from the Telegram Bot API after editing the chat invite link. This typically includes details about the updated invite link such as the invite link URL, name, expiration date, member limit, and other metadata.
No binary data output is involved in this operation.
Dependencies
- Requires an active Telegram Bot API token credential to authenticate requests.
- Requires a valid subscription and API key for the "N8N Tools API" service, which acts as a validation layer before forwarding requests to Telegram.
- The node uses HTTP POST requests to the N8N Tools API endpoint for validation and then calls the Telegram API via a helper class.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential configured in n8n is correct and active.
- Unknown operation error: Ensure that the operation parameter is correctly set to "editChatInviteLink" when using the Chats resource.
- Malformed JSON in Options: The "Options" property must be a valid JSON string. Invalid JSON will cause parsing errors. Use proper JSON formatting.
- Missing Chat ID: The Chat ID is required; omitting it will cause the request to fail.
- Telegram API errors: Errors returned from Telegram (e.g., insufficient bot permissions, invalid invite link) will be passed through. Check the bot's permissions and the validity of the invite link being edited.