Skip to main content

messages.getInlineGameHighScores

Get highscores of a game sent using an inline bot

func (c *Client) MessagesGetInlineGameHighScores(ctx context.Context, request *MessagesGetInlineGameHighScoresRequest) (*MessagesHighScores, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesGetInlineGameHighScores(ctx, &tg.MessagesGetInlineGameHighScoresRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *MessagesHighScores
return nil
})

Parameters

NameTypeRequiredDescription
IDInputBotInlineMessageIDClassyesID of inline message
UserIDInputUserClassyesGet high scores of a certain user

Returns

*MessagesHighScores

Possible errors

CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.

References