You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this method to set the score of the specified user in a game. On success, if the message was sent by the bot, returns the edited Message, otherwise returns True. Returns an error, if the new score is not greater than the user's current score in the chat.
449
+
:param token: Bot's token (you don't need to fill this)
450
+
:param user_id: User identifier
451
+
:param score: New score, must be positive
452
+
:param chat_id: (Optional, required if inline_message_id is not specified) Unique identifier for the target chat (or username of the target channel in the format @channelusername)
453
+
:param message_id: (Optional, required if inline_message_id is not specified) Unique identifier of the sent message
454
+
:param inline_message_id: (Optional, required if chat_id and message_id are not specified) Identifier of the inline message
455
+
:param edit_message: (Optional) Pass True, if the game message should be automatically edited to include the current scoreboard
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.
475
+
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.
476
+
:param token: Bot's token (you don't need to fill this)
477
+
:param user_id: Target user id
478
+
:param chat_id: (Optional, required if inline_message_id is not specified) Unique identifier for the target chat (or username of the target channel in the format @channelusername)
479
+
:param message_id: (Optional, required if inline_message_id is not specified) Unique identifier of the sent message
480
+
:param inline_message_id: (Optional, required if chat_id and message_id are not specified) Identifier of the inline message
0 commit comments