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
| Name | Type | Required | Description |
|---|---|---|---|
ID | InputBotInlineMessageIDClass | yes | ID of inline message |
UserID | InputUserClass | yes | Get high scores of a certain user |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.getInlineGameHighScores#f635e1b