mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +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(
|
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",
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue