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
This node integrates with the Telegram Bot API to perform various bot-related actions. Specifically, for the Bots resource and the Set My Profile Photo operation, it allows you to update the profile photo of your Telegram bot.
Use cases include:
- Automatically updating your bot's profile picture based on external triggers or events.
- Managing your bot's appearance programmatically without manual intervention.
- Integrating with workflows that require dynamic branding or seasonal profile photo changes.
For example, you could connect this node to a workflow that updates your bot’s profile photo daily with a new image fetched from an external source.
Properties
| Name | Meaning |
|---|---|
| Options | Additional options as a JSON object (for Bots resource operations other than messages). |
Note: For the Set My Profile Photo operation specifically, the main input property used is:
| Name | Meaning |
|---|---|
| photo | The photo data representing the new profile photo to set for the bot. This is typically a file identifier or file data accepted by the Telegram API. |
The provided properties JSON only shows a generic "Options" property, but the code indicates that the photo parameter is required for setting the profile photo.
Output
The node outputs a JSON object containing the response from the Telegram Bot API after attempting to set the profile photo. This response typically includes information about the success of the operation and any relevant metadata returned by Telegram.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for the Telegram Bot API.
- Requires a subscription and valid 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 the Telegram Bot API endpoints.
- No additional environment variables are explicitly required beyond the credentials mentioned.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error indicating invalid subscription or API key, verify that your API key credential is correct and active.
- Unknown Operation Error: If an unsupported operation is selected, the node will throw an error. Ensure the operation name matches one of the supported ones listed in the node.
- Malformed Photo Data: If the photo data is not correctly formatted or missing, the Telegram API may reject the request. Make sure the photo parameter contains valid data according to Telegram's requirements.
- HTTP Request Failures: Network issues or incorrect API URLs can cause failures. Confirm network connectivity and credential configurations.
Links and References
- Telegram Bot API Documentation - setMyProfilePhoto
- Telegram Bot API Overview
- n8n Documentation (for general node usage and credential setup)