logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// This file is auto generated by [`cg`] from [`schema`].
//
// **DO NOT EDIT THIS FILE**,
//
// Edit `cg` or `schema` instead.
//
// [cg]: https://github.com/teloxide/cg
// [`schema`]: https://github.com/WaffleLapkin/tg-methods-schema
use serde::Serialize;

use crate::types::{TargetMessage, True, UserId};

impl_payload! {
    /// Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. On success, returns an Array of [`GameHighScore`] objects.
    ///
    /// > This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and his neighbors are not among them. Please note that this behavior is subject to change.
    ///
    /// [`GameHighScore`]: crate::types::GameHighScore
    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
    pub GetGameHighScores (GetGameHighScoresSetters) => True {
        required {
            /// User identifier
            pub user_id: UserId,
            /// Target message
            #[serde(flatten)]
            pub target: TargetMessage [into],
        }
    }
}