Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node operation pins a specific message in a Telegram chat. It is useful for highlighting important messages in group chats or channels, ensuring that all members see the pinned message. For example, a team leader can pin a meeting agenda message in a group chat for easy reference by all members.
Use Case Examples
- Pinning an announcement message in a Telegram group chat to keep it visible to all members.
- Pinning a rule or guideline message in a community channel to ensure it stays at the top.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username where the message will be pinned. |
| Message ID | Unique identifier of the message to pin. |
| Disable Notification | Whether to send a notification to all chat members about the new pinned message. |
Output
JSON
json- The JSON response from the Telegram API after pinning the message, containing details about the operation result.
Dependencies
- Telegram API key credential
Troubleshooting
- Ensure the Chat ID and Message ID are correct and the bot has permission to pin messages in the chat.
- If 'Disable Notification' is set to true, members will not be notified, which might cause confusion if they do not see the pinned message.
- Common error: 'message to pin not found' indicates the Message ID is invalid or the message is not in the specified chat.
Links
- Telegram Bot API - pinChatMessage - Official Telegram API documentation for the pinChatMessage method used to pin messages in chats.