teloxide_core/payloads/get_game_high_scores.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{TargetMessage, True, UserId};
6
7impl_payload! {
8 /// 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.
9 ///
10 /// > 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.
11 ///
12 /// [`GameHighScore`]: crate::types::GameHighScore
13 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
14 pub GetGameHighScores (GetGameHighScoresSetters) => True {
15 required {
16 /// User identifier
17 pub user_id: UserId,
18 /// Target message
19 #[serde(flatten)]
20 pub target: TargetMessage [into],
21 }
22 }
23}