diff --git a/crates/teloxide-core/schema.ron b/crates/teloxide-core/schema.ron index 7cd6bc18..4dfcb368 100644 --- a/crates/teloxide-core/schema.ron +++ b/crates/teloxide-core/schema.ron @@ -4112,7 +4112,7 @@ Schema( ), Method( 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."), tg_doc: "https://core.telegram.org/bots/api#setgamescore", tg_category: "Games", diff --git a/crates/teloxide-core/src/payloads/set_game_score_inline.rs b/crates/teloxide-core/src/payloads/set_game_score_inline.rs index 513e4f57..8d305c94 100644 --- a/crates/teloxide-core/src/payloads/set_game_score_inline.rs +++ b/crates/teloxide-core/src/payloads/set_game_score_inline.rs @@ -2,14 +2,14 @@ use serde::Serialize; -use crate::types::{Message, UserId}; +use crate::types::{True, UserId}; 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. /// /// See also: [`SetGameScore`](crate::payloads::SetGameScore) #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)] - pub SetGameScoreInline (SetGameScoreInlineSetters) => Message { + pub SetGameScoreInline (SetGameScoreInlineSetters) => True { required { /// User identifier pub user_id: UserId,