Telegram

Sends data to Telegram

Overview

This node sends a chat action to a specified Telegram chat. Chat actions are status indicators that show the user what the bot is doing, such as typing, uploading a photo, recording audio, etc. This is useful for improving user experience by providing real-time feedback about the bot's activity in the chat. For example, before sending a photo, the bot can show the "upload_photo" action to indicate the upload process.

Use Case Examples

  1. A bot that sends a 'typing' action before sending a text message to simulate natural conversation.
  2. A bot that shows 'upload_photo' action while uploading an image to a chat.
  3. A bot that indicates 'record_audio' when preparing to send a voice message.

Properties

Name Meaning
Chat ID Unique identifier for the target chat or username where the chat action will be sent.
Action Type of chat action to broadcast, such as typing, uploading photo, recording video, etc. This indicates what the user is about to receive.

Output

JSON

  • json - The JSON response from the Telegram API after sending the chat action.

Dependencies

  • Telegram API credentials (API key)

Troubleshooting

  • Ensure the Chat ID is correct and the bot has permission to send actions to the chat.
  • The action type must be one of the predefined options; otherwise, the API call will fail.
  • If the bot is not responding, check the Telegram API credentials and network connectivity.

Links

Discussion