Telegram node Callback operations#
Use these operations to respond to callback queries sent from the in-line keyboard or in-line queries. Refer to Telegram for more information on the Telegram node itself.
Answer Query#
Use this operation to send answers to callback queries sent from inline keyboards using the Bot API answerCallbackQuery method.
Enter these parameters:
- Credential to connect with: Create or select an existing Telegram credential.
- Resource: Select Callback.
- Operation: Select Answer Query.
- Query ID: Enter the unique identifier of the query you want to answer.
- To feed a Query ID directly into this node, use the Telegram Trigger node triggered on the Callback Query.
- Results: Enter a JSON-serialized array of results you want to use as answers to the query. Refer to the Telegram InlineQueryResults documentation for more information on formatting your array.
Refer to the Telegram Bot API answerCallbackQuery documentation for more information.
Answer Query additional fields#
Use the Additional Fields to further refine the behavior of the node. Select Add Field to add any of the following:
- Cache Time: Enter the maximum amount of time in seconds that the client may cache the result of the callback query. Telegram defaults to
0
seconds for this method. - Show Alert: Telegram can display the answer as a notification at the top of the chat screen or as an alert. Choose whether you want to keep the default notification display (turned off) or display the answer as an alert (turned on).
- Text: If you want the answer to show text, enter up to 200 characters of text here.
- URL: Enter a URL that will be opened by the user's client. Refer to the url parameter instructions at the Telegram Bot API answerCallbackQuery documentation for more information.
Answer Inline Query#
Use this operation to send answers to callback queries sent from inline queries using the Bot API answerInlineQuery method.
Enter these parameters:
- Credential to connect with: Create or select an existing Telegram credential.
- Resource: Select Callback.
- Operation: Select Answer Inline Query.
- Query ID: Enter the unique identifier of the query you want to answer.
- To feed a Query ID directly into this node, use the Telegram Trigger node triggered on the Inline Query.
- Results: Enter a JSON-serialized array of results you want to use as answers to the query. Refer to the Telegram InlineQueryResults documentation for more information on formatting your array.
Telegram allows a maximum of 50 results per query.
Refer to the Telegram Bot API answerInlineQuery documentation for more information.
Answer Inline Query additional fields#
Use the Additional Fields to further refine the behavior of the node. Select Add Field to add any of the following:
- Cache Time: The maximum amount of time in seconds that the client may cache the result of the callback query. Telegram defaults to
300
seconds for this method. - Show Alert: Telegram can display the answer as a notification at the top of the chat screen or as an alert. Choose whether you want to keep the default notification display (turned off) or display the answer as an alert (turned on).
- Text: If you want the answer to show text, enter up to 200 characters of text here.
- URL: Enter a URL that the user's client will open.