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
- Pin a message with ID '12345' in a chat with ID '@mygroupchat' to highlight an important announcement.
- Pin a message silently without notifying all chat members by setting the 'Disable Notification' option.
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. |
| Additional Fields | Optional settings such as disabling notification to all chat members about the new pinned message. |
Output
JSON
chat_id- The chat identifier where the message was pinned.message_id- The identifier of the pinned message.disable_notification- Indicates if the notification about the pinned message was disabled.
Dependencies
- Telegram API with an 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, members will not be notified, which might cause confusion if they miss the pinned message.
- Common errors include invalid chat or message IDs, or insufficient bot permissions. Verify the bot's role and permissions in the chat.
Links
- Telegram Bot API - pinChatMessage - Official Telegram API documentation for the pinChatMessage method.