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 Delete My Profile Photo operation, it allows you to delete the current profile photo of your Telegram bot. This can be useful when you want to update or remove the bot's profile picture programmatically without manual intervention.
Common scenarios include:
- Automating bot profile management as part of a deployment or update workflow.
- Removing outdated or temporary profile photos before setting new ones.
- Managing multiple bots' profiles in bulk via automation.
Example: You have a Telegram bot whose profile photo changes based on certain events (e.g., holidays, promotions). Using this node operation, you can delete the existing profile photo before uploading a new one automatically.
Properties
| Name | Meaning |
|---|---|
| Options | Additional options as a JSON object. For the Bots resource and Delete My Profile Photo operation, this is typically empty or unused. |
Note: The provided input properties JSON only defines an "Options" property applicable to multiple resources including Bots, but for this specific operation, no additional parameters are required.
Output
The node outputs a JSON object representing the response from the Telegram Bot API after attempting to delete the bot's profile photo. Typically, this will be a confirmation of success or an error message if the deletion failed.
No binary data output is involved in this operation.
Dependencies
- Requires an API key credential for the Telegram Bot API.
- Requires a subscription or valid API key for the external "N8N Tools API" service used for validation before making Telegram API calls.
- The node uses the Telegram Bot API endpoints under the hood.
- Proper configuration of credentials in n8n is necessary to authenticate requests.
Troubleshooting
- Invalid subscription or API key error: If the node throws an error about invalid subscription or API key, verify that the API key credential is correct and active.
- Permission errors: Ensure the bot has the necessary rights to modify its profile photo.
- Network or API errors: Check network connectivity and Telegram API status.
- Unexpected errors: The node wraps errors from the Telegram API; review the error messages for details.