Telegram 节点回调操作(Telegram node Callback operations)#
使用这些操作来响应从内联键盘或内联查询发送的回调查询。有关 Telegram 节点本身的更多信息,请参阅 Telegram。
🌐 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.
This node can be used as an AI tool
This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.
回答查询(Answer Query)#
使用此操作可以通过 Bot API 的 answerCallbackQuery 方法发送对来自 内联键盘 的回调查询的回答。
🌐 Use this operation to send answers to callback queries sent from inline keyboards using the Bot API answerCallbackQuery method.
请输入以下参数:
🌐 Enter these parameters:
- 用于连接的凭证:创建或选择一个现有的 Telegram 凭证。
- 资源:选择 回调。
- 操作:选择 回答查询。
- 查询 ID:输入你要回答的查询的唯一标识符。
- 要将查询 ID 直接输入此节点,请使用在 回调查询 上触发的 Telegram 触发器 节点。
- 结果:输入你希望作为查询答案使用的 JSON 序列化结果数组。有关如何格式化数组的更多信息,请参阅 Telegram InlineQueryResults 文档。
有关更多信息,请参阅 Telegram 机器人 API answerCallbackQuery 文档。
🌐 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:
- 缓存时间:输入客户端可以缓存回调查询结果的最长时间(以秒为单位)。Telegram 对此方法的默认值为
0秒。 - 显示提醒:Telegram 可以将答案显示为聊天屏幕顶部的通知或提醒。请选择是保留默认的通知显示(关闭),还是将答案显示为提醒(开启)。
- 文本:如果你希望答案显示文本,请在此输入最多200个字符的文本。
- URL:输入一个将由用户客户端打开的 URL。有关更多信息,请参阅 Telegram Bot API answerCallbackQuery 文档中的 url 参数说明。
回答内联查询(Answer Inline Query)#
使用此操作可以通过 Bot API 的 answerInlineQuery 方法向来自内联查询的回调查询发送答案。
🌐 Use this operation to send answers to callback queries sent from inline queries using the Bot API answerInlineQuery method.
请输入以下参数:
🌐 Enter these parameters:
- 用于连接的凭证:创建或选择一个现有的 Telegram 凭证。
- 资源:选择 回调。
- 操作:选择在内联查询中回答。
- 查询 ID:输入你要回答的查询的唯一标识符。
- 要将查询 ID 直接输入此节点,请使用在 内联查询 上触发的 Telegram 触发器 节点。
- 结果:输入你希望作为查询答案使用的 JSON 序列化结果数组。有关如何格式化数组的更多信息,请参阅 Telegram InlineQueryResults 文档。
Telegram 每次查询最多允许返回 50 条结果。
🌐 Telegram allows a maximum of 50 results per query.
有关更多信息,请参阅 Telegram 机器人 API answerInlineQuery 文档。
🌐 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:
- 缓存时间:客户端可以缓存回调查询结果的最长时间(以秒为单位)。对于此方法,Telegram 默认值为
300秒。 - 显示提醒:Telegram 可以将答案显示为聊天屏幕顶部的通知或提醒。请选择是保留默认的通知显示(关闭),还是将答案显示为提醒(开启)。
- 文本:如果你希望答案显示文本,请在此输入最多200个字符的文本。
- URL:输入用户客户端将打开的 URL。