Telegram Advanced icon

Telegram Advanced

Sends data to Telegram With Custom and Advanced Options

Overview

This node sends messages and performs various message-related operations on Telegram using the Telegram Bot API. It supports sending text messages, animations, audio, documents, locations, media groups, photos, stickers, and videos to specified chats. It also allows editing, deleting, pinning, and unpinning messages, as well as answering callback queries and inline queries. The node is useful for automating Telegram interactions, such as sending notifications, media content, or interactive messages with custom keyboards and reply options.

Use Case Examples

  1. Sending a text message to a Telegram chat with optional reply markup like inline keyboards or force reply.
  2. Sending media files such as photos, videos, or documents to a chat with captions and parse modes.
  3. Editing an existing message's text or deleting a message in a chat.
  4. Answering callback queries from inline keyboards or inline queries from inline bots.

Properties

Name Meaning
Chat ID Unique identifier for the target chat or username to send the message to.
Text Text content of the message to be sent.
Reply Markup Additional interface options for the message, such as force reply, inline keyboard, reply keyboard, or removing the keyboard.
Force Reply Options to configure force reply behavior, including forcing reply and selective reply from specific users.
Inline Keyboard Defines rows and buttons for an inline keyboard with customizable button text and additional fields like callback data, URLs, and web app URLs.
Reply Keyboard Defines rows and buttons for a custom reply keyboard with options to request contact, location, or launch a web app.
Reply Keyboard Options Options to resize the keyboard, make it one-time, or show it selectively to specific users.
Reply Keyboard Remove Options to remove the custom keyboard and selectively force reply from specific users.
Additional Fields Additional optional fields for messages, such as caption, disable notification, disable web page preview, parse mode, reply to message ID, message thread ID, and custom JSON fields for advanced Telegram API options.

Output

JSON

  • result - The response from the Telegram API for the performed operation, containing details about the sent or modified message or other relevant data.

Dependencies

  • Telegram Bot API

Troubleshooting

  • Ensure the Chat ID is correct and the bot has permission to send messages to the chat.
  • When sending files from binary data, ensure the binary property contains a valid file name and MIME type.
  • If using custom JSON fields, validate the JSON structure to avoid API errors.
  • Check for required parameters for each operation, such as message IDs for editing or deleting messages.

Links

Discussion