Layer 227
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

Gogram 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.