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 凭证。
¥Credential to connect with: Create or select an existing Telegram credential.
- 资源:选择“回调”。
¥Resource: Select Callback.
- 操作:选择“回答查询”。
¥Operation: Select Answer Query.
- 查询 ID:输入要回答的查询的唯一标识符。
¥Query ID: Enter the unique identifier of the query you want to answer.
-
要将查询 ID 直接输入到此节点,请使用回调查询触发的 Telegram 触发器 节点。
¥To feed a Query ID directly into this node, use the Telegram Trigger node triggered on the Callback Query.
-
结果:输入你希望用作查询答案的 JSON 序列化结果数组。请参阅 Telegram InlineQueryResults 文档,了解有关格式化数组的更多信息。
¥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 Bot 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秒。
¥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.
- 显示警报:Telegram 可以将答案显示为聊天屏幕顶部的通知或警报。选择是否保留默认通知显示(关闭)还是将回复显示为警报(开启)。
¥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).
- 文本:如果你希望答案以文本形式显示,请在此处输入最多 200 个字符的文本。
¥Text: If you want the answer to show text, enter up to 200 characters of text here.
- URL:输入用户客户端将打开的 URL。有关更多信息,请参阅 Telegram Bot API 文档 answerCallbackQuery 中的 URL 参数说明。
¥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
使用此操作通过 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 凭证。
¥Credential to connect with: Create or select an existing Telegram credential.
- 资源:选择“回调”。
¥Resource: Select Callback.
- 操作:选择“回答内联查询”。
¥Operation: Select Answer Inline Query.
- 查询 ID:输入要回答的查询的唯一标识符。
¥Query ID: Enter the unique identifier of the query you want to answer.
-
要将查询 ID 直接输入到此节点,请使用内联查询触发的 Telegram 触发器 节点。
¥To feed a Query ID directly into this node, use the Telegram Trigger node triggered on the Inline Query.
-
结果:输入你希望用作查询答案的 JSON 序列化结果数组。请参阅 Telegram InlineQueryResults 文档,了解有关格式化数组的更多信息。
¥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 每次查询最多允许返回 50 条结果。
¥Telegram allows a maximum of 50 results per query.
请参阅 Telegram Bot 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秒。
¥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.
- 显示警报:Telegram 可以将答案显示为聊天屏幕顶部的通知或警报。选择是否保留默认通知显示(关闭)还是将回复显示为警报(开启)。
¥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).
- 文本:如果你希望答案以文本形式显示,请在此处输入最多 200 个字符的文本。
¥Text: If you want the answer to show text, enter up to 200 characters of text here.
- URL:输入用户客户端将打开的 URL。
¥URL: Enter a URL that the user's client will open.