messages.setBotGuestChatResult
机器人可以使用此方法来回答访客模式 » 通过 updateBotGuestChatQuery 更新收到的查询,提供以访客身份发布到聊天中的消息,请参阅此处 » 了解更多信息。
机器人可以使用此方法来回答通过 [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md) 更新收到的 [访客模式 »](https://core.telegram.org/api/bots/guest-mode.md) 查询,提供以访客身份发布到聊天中的消息,请参阅[此处 »](https://core.telegram.org/api/bots/guest-mode.md#handling-guest-queries-bot-side) 了解更多信息。
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
query_id | long | 是的 | 来自 [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md).`query_id` 字段的查询标识符 |
result | InputBotInlineResult | 是的 | 作为查询答案发送的结果 |
回应
InputBotInlineMessageID
MTProto RPC
- 403 · USER_BOT_INVALID — 用户帐户调用该方法时必须提供bot方法参数。如果没有该方法参数,则该方法只能由bot账户调用。
- 400 · USER_BOT_REQUIRED — 此方法只能由机器人调用。