Actions12
Overview
The node implements a Telegram client that interacts with the Telegram API to perform various messaging operations. Specifically, the "Reply To Message" operation allows users to send a reply message to an existing message in a specified chat or channel. This is useful for maintaining conversation context by directly responding to a particular message.
Common scenarios include:
- Customer support bots replying to user queries.
- Automated notifications that respond to specific messages.
- Chat moderation tools that reply to flagged messages.
Example: Replying to a user's question in a group chat by referencing their original message ID and sending a contextual answer.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The identifier of the chat or channel where the reply will be sent. Can be a numeric ID or username (e.g., @username or -100xxxx). |
| Message Text | The text content of the reply message to send. |
| Message ID | The ID of the message being replied to. |
| Options | Additional optional settings: • Silent: Send the message without notification. • Caption: Caption for media messages (not used here). • Parse Mode: How to parse the message text; options are None, Markdown, or HTML. • Limit: Maximum number of items to return (not relevant for reply operation). |
Output
The output JSON object for the "Reply To Message" operation includes:
success: Boolean indicating if the reply was sent successfully.messageId: The unique ID of the newly sent reply message.replyToMessageId: The ID of the original message being replied to.date: Timestamp of when the reply message was sent.text: The text content of the reply message.
This structured output confirms the reply action and provides identifiers for further processing or logging.
Dependencies
- Requires an active Telegram API session authenticated via credentials containing an API ID, API hash, and session string.
- Uses the Telegram Client SDK internally to connect and interact with Telegram's API.
- The node must be configured with valid Telegram API credentials before use.
Troubleshooting
- No credentials provided: The node throws an error if Telegram API credentials are missing. Ensure credentials are set up correctly.
- Invalid Chat ID or Message ID: Errors may occur if the chat or message IDs do not exist or the bot/user does not have access. Verify IDs and permissions.
- Parse Mode errors: If the message text contains unsupported formatting for the selected parse mode, the message might fail. Use "None" or validate markdown/html syntax.
- Connection issues: Network problems or invalid session data can cause connection failures. Re-authenticate or check network connectivity.
- Continue on Fail: If enabled, the node will continue processing other items even if one fails, returning error details in the output.