Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node operation unpins a specific chat message in a Telegram chat. It is useful for managing chat messages by removing the pinned status from a message, allowing for dynamic control over which messages are highlighted in a chat. For example, it can be used in group chats or channels to unpin outdated announcements or messages that no longer need to be emphasized.
Use Case Examples
- Unpin a previously pinned message in a Telegram group chat by specifying the chat ID and the message ID to unpin.
- Manage chat message pins dynamically in a Telegram channel to keep the pinned messages relevant.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username of the target channel where the message to unpin is located. |
| Message ID | Unique identifier of the message to unpin in the specified chat. |
Output
JSON
json- The JSON response from the Telegram API confirming the unpinning of the chat message.
Dependencies
- Telegram API key credential for authentication
Troubleshooting
- Ensure the Chat ID and Message ID are correct and the bot has permission to unpin messages in the chat.
- Common error: 'message to unpin not found' indicates the message ID may be incorrect or the message is not pinned.
- Permission errors may occur if the bot is not an administrator in the chat with rights to manage messages.
Links
- Telegram Bot API - unpinChatMessage - Official Telegram API documentation for the unpinChatMessage method used to unpin a chat message.