messages.setBotGuestChatResult
Bots may use this method to answer a guest mode » query received via an updateBotGuestChatQuery update, providing the message to post into the chat as a guest, see here » for more info.
Bots may use this method to answer a [guest mode »](https://core.telegram.org/api/bots/guest-mode.md) query received via an [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md) update, providing the message to post into the chat as a guest, see [here »](https://core.telegram.org/api/bots/guest-mode.md#handling-guest-queries-bot-side) for more info.
| Name | Type | Required | Description |
|---|---|---|---|
query_id | long | Yes | Query identifier from the [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md).`query_id` field |
result | InputBotInlineResult | Yes | The result to send as the answer to the query |
Replies
InputBotInlineMessageID
MTProto RPC
- 403 · USER_BOT_INVALID — User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.
- 400 · USER_BOT_REQUIRED — This method can only be called by a bot.