Layer 227
MessagesSetBotGuestChatResult
Bots may use this method to answer a guest mode query received via an update Bot Guest Chat Query update, providing the message to post into the chat as a guest, see here for more info.
method
Bots
messages.setBotGuestChatResult#b8f106e3 query_id:long result:InputBotInlineResult = InputBotInlineMessageID;
Parameters
| Name | Type | Description |
|---|---|---|
| QueryId | long | Query identifier from the update Bot Guest Chat Query. query_id field |
| Result | InputBotInlineResult | The result to send as the answer to the query |
Returns
InputBotInlineMessageIDGogram Example
// MessagesSetBotGuestChatResult - positional arguments result, err := client.MessagesSetBotGuestChatResult(int64(1234567890), &tg.InputBotInlineResult{}) if err != nil { // handle error } // result is *tg.InputBotInlineMessageId
Possible Errors
| Code | Type | Description |
|---|---|---|
| 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. |