Struct actix_telegram::methods::GetGameHighScores [−][src]
pub struct GetGameHighScores { pub user_id: Integer, pub chat_id: Option<Integer>, pub message_id: Option<Integer>, pub inline_message_id: Option<String>, }
Use this method to get data for high score tables. Will return the score of the specified user and several of his 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 his 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.
Fields
user_id: Integer
Target user id
chat_id: Option<Integer>
Required if inline_message_id is not specified. Unique identifier for the target chat
message_id: Option<Integer>
Required if inline_message_id is not specified. Identifier of the sent message
inline_message_id: Option<String>
Required if chat_id and message_id are not specified. Identifier of the inline message
Trait Implementations
impl Debug for GetGameHighScores
[src]
impl Debug for GetGameHighScores
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ActixMessage for GetGameHighScores
[src]
impl ActixMessage for GetGameHighScores
type Result = Result<Vec<GameHighScore>, ()>
The type of value that this message will resolved with if it is successful. Read more
impl Handler<GetGameHighScores> for TelegramApi
[src]
impl Handler<GetGameHighScores> for TelegramApi
Auto Trait Implementations
impl Send for GetGameHighScores
impl Send for GetGameHighScores
impl Sync for GetGameHighScores
impl Sync for GetGameHighScores