mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Fix return type of SetGameScoreInline
This commit is contained in:
parent
33989c7f63
commit
ace3eb7958
2 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue