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 integrates with the Telegram Bot API to perform various file-related operations, specifically including uploading sticker files. The "Upload Sticker File" operation allows users to upload a PNG sticker file associated with a specific Telegram user ID. This is useful for bot developers or administrators who want to programmatically add custom stickers to their Telegram sticker sets.
Practical scenarios include:
- Automating the addition of new stickers to a user's sticker set.
- Managing sticker content dynamically based on user input or external triggers.
- Enhancing chatbots with personalized or branded sticker packs.
Properties
| Name | Meaning |
|---|---|
| User ID | The Telegram User ID to whom the sticker file will be uploaded. |
| Options | Additional options in JSON format (not specifically used in this operation but available). |
Output
The output is a JSON object representing the response from the Telegram API after uploading the sticker file. It typically contains information about the uploaded sticker file, such as its file ID and other metadata returned by Telegram.
If an error occurs during the upload, the output JSON will contain an error field with the error message.
Dependencies
- Requires an active Telegram Bot API token configured in n8n credentials.
- 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 the "N8N Tools API" endpoint to validate the API key and subscription status before executing Telegram API calls.
Troubleshooting
- Invalid subscription or API key: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
- Unknown operation error: Ensure the operation parameter is set exactly to "uploadStickerFile" when using this functionality.
- Malformed PNG sticker data: The PNG sticker file must be provided correctly; otherwise, the Telegram API may reject the upload.
- User ID missing or incorrect: The user ID must be a valid Telegram user identifier; otherwise, the upload will fail.
- Network or API errors: Check network connectivity and Telegram API availability if requests fail unexpectedly.