Telegram Advanced icon

Telegram Advanced

Sends data to Telegram With Custom and Advanced Options

Overview

This node operation answers a callback query sent from an inline keyboard in Telegram. It is useful for responding to user interactions with inline buttons in Telegram chats, such as confirming actions or providing feedback. For example, when a user presses a button in a Telegram bot message, this node can send an answer to that callback query to notify the user or perform further actions.

Use Case Examples

  1. Answering a callback query with a notification text to inform the user that their action was received.
  2. Showing an alert instead of a notification to grab the user's attention.
  3. Providing a URL that the user's client will open upon answering the callback query.

Properties

Name Meaning
Query ID Unique identifier for the callback query to be answered, required to specify which query to respond to.
Additional Fields Optional parameters to customize the answer, including cache time, whether to show an alert, notification text, and a URL to open.

Output

JSON

  • callback_query_id - The unique identifier of the answered callback query.
  • text - The notification or alert text sent in response to the callback query.
  • show_alert - Indicates if an alert was shown instead of a notification.
  • cache_time - The cache duration for the callback query result on the client side.
  • url - The URL opened by the user's client if specified.

Dependencies

  • Requires Telegram API credentials (API key) to authenticate and send requests to Telegram.

Troubleshooting

  • Ensure the Query ID is correctly provided and matches an active callback query; otherwise, the API call will fail.
  • If the notification text exceeds 200 characters, the request will be rejected by Telegram.
  • Check that the Telegram API credentials are valid and have the necessary permissions to answer callback queries.
  • If using the URL field, ensure it is a valid HTTPS URL to avoid errors.

Links

Discussion