Fix return type of SetGameScoreInline

This commit is contained in:
Maybe Waffle 2023-02-15 16:29:13 +04:00
parent 33989c7f63
commit ace3eb7958
2 changed files with 3 additions and 3 deletions

View file

@ -4112,7 +4112,7 @@ Schema(
), ),
Method( Method(
names: ("setGameScoreInline", "SetGameScoreInline", "set_game_score_inline"), names: ("setGameScoreInline", "SetGameScoreInline", "set_game_score_inline"),
return_ty: RawTy("Message"), return_ty: True,
doc: Doc(md: "Use this method to set the score of the specified user in a game. On success, returns _True_. Returns an error, if the new score is not greater than the user's current score in the chat and force is False."), doc: Doc(md: "Use this method to set the score of the specified user in a game. On success, returns _True_. Returns an error, if the new score is not greater than the user's current score in the chat and force is False."),
tg_doc: "https://core.telegram.org/bots/api#setgamescore", tg_doc: "https://core.telegram.org/bots/api#setgamescore",
tg_category: "Games", tg_category: "Games",

View file

@ -2,14 +2,14 @@
use serde::Serialize; use serde::Serialize;
use crate::types::{Message, UserId}; use crate::types::{True, UserId};
impl_payload! { impl_payload! {
/// Use this method to set the score of the specified user in a game. On success, returns _True_. Returns an error, if the new score is not greater than the user's current score in the chat and force is False. /// Use this method to set the score of the specified user in a game. On success, returns _True_. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
/// ///
/// See also: [`SetGameScore`](crate::payloads::SetGameScore) /// See also: [`SetGameScore`](crate::payloads::SetGameScore)
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)] #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub SetGameScoreInline (SetGameScoreInlineSetters) => Message { pub SetGameScoreInline (SetGameScoreInlineSetters) => True {
required { required {
/// User identifier /// User identifier
pub user_id: UserId, pub user_id: UserId,