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 interacts with the Telegram Bot API to perform various operations related to Telegram files, specifically focusing on sticker sets when the "Set Sticker Set Thumb" operation is selected. This operation allows you to set or update the thumbnail image of a sticker set owned by a user.
This node is beneficial in scenarios where you manage Telegram sticker sets programmatically, such as automating updates to sticker collections for branding, marketing campaigns, or community engagement. For example, you can automate changing the thumbnail of a sticker set based on seasonal themes or events without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Options | Additional options in JSON format that can be passed to customize the operation behavior. |
Note: The provided input properties JSON only includes the "Options" property for this resource-operation combination. However, from the source code and typical usage, the following parameters are relevant for the "Set Sticker Set Thumb" operation (though not explicitly listed in the provided JSON snippet):
- userId (string): Telegram User ID of the sticker set owner.
- name (string): Name of the sticker set.
- thumb (file or string): The thumbnail image file to set for the sticker set.
These parameters are required to specify which sticker set's thumbnail to update and what the new thumbnail should be.
Output
The output is an array of JSON objects, each corresponding to one input item processed. Each JSON object contains the response from the Telegram Bot API for the "Set Sticker Set Thumb" operation.
The exact structure of the JSON depends on the Telegram API response but typically includes confirmation of success or details about the updated sticker set.
If the operation fails and "Continue On Fail" is enabled, the output JSON will contain an error field with the error message.
No binary data output is indicated for this operation.
Dependencies
- Requires an active Telegram Bot API token configured via credentials in n8n.
- Requires access to the "N8N Tools API" service with a valid subscription and API key for validation before executing Telegram API calls.
- The node uses HTTP requests to communicate with both the N8N Tools API and the Telegram Bot API endpoints.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that your N8N Tools API credentials are correct and active.
- Unknown Operation Error: If the operation name is incorrect or unsupported, the node will throw an "Unknown operation" error. Ensure the operation parameter is exactly "setStickerSetThumb" for this use case.
- Missing Required Parameters: Failure to provide necessary parameters like
userId,name, orthumbmay cause errors from the Telegram API. Double-check that all required inputs are correctly set. - Telegram API Errors: Any errors returned by the Telegram API (e.g., invalid user ID, sticker set name, or thumbnail format) will be propagated. Review the error messages for guidance on correcting input values.
Links and References
This summary is based solely on static analysis of the provided source code and input properties.