Telegram

Sends data to Telegram

Overview

This node allows interaction with Telegram's API to perform various chat-related operations. Specifically, the 'Leave' operation enables the bot to leave a group, supergroup, or channel chat. This is useful for automating chat management tasks, such as exiting groups when certain conditions are met or managing multiple chat memberships programmatically.

Use Case Examples

  1. A bot automatically leaves a Telegram group after completing a task or when a user triggers a specific event.
  2. Automated workflow that manages chat memberships by leaving inactive or unwanted groups.

Properties

Name Meaning
Chat ID Unique identifier for the target chat or username of the target channel. Required to specify which chat the bot should leave.

Output

JSON

  • result - The response from Telegram API confirming the bot has left the chat.

Dependencies

  • Telegram API access via an API key credential

Troubleshooting

  • Ensure the Chat ID is correct and the bot has permission to leave the chat.
  • Common error: 'chat not found' or 'bot is not a member of the chat' indicates invalid chat ID or bot membership issues.
  • Timeout or network errors may occur if Telegram API is unreachable; verify network connectivity and API credentials.

Links

Discussion