mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-07 02:59:41 +01:00
fix user_id param type
This commit is contained in:
parent
79b5c41bb5
commit
5d576455d9
73 changed files with 100 additions and 100 deletions
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -11,7 +11,7 @@ impl_payload! {
|
|||
pub AddStickerToSet (AddStickerToSetSetters) => True {
|
||||
required {
|
||||
/// User identifier of sticker file owner
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
/// Sticker set name
|
||||
pub name: String [into],
|
||||
/// **PNG** or **TGS** image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a _file\_id_ as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. [More info on Sending Files »]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -28,8 +28,8 @@ impl_payload! {
|
|||
/// Otherwise, you may use links like `t.me/your\_bot?start=XXXX` that open your bot with a parameter.
|
||||
///
|
||||
/// [@Botfather]: https://t.me/botfather
|
||||
/// [callback_game]: https://core.telegram.org/bots/api#inlinekeyboardbutton
|
||||
/// [`Game`]: crate::types::Game
|
||||
/// [callback_game]: https://core.telegram.org/bots/api#inlinekeyboardbutton
|
||||
pub url: String [into],
|
||||
/// The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0.
|
||||
pub cache_time: u32,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -28,8 +28,8 @@ impl_payload! {
|
|||
///
|
||||
/// _Example_: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an oauth link. Once done, the bot can offer a [switch_inline] button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.
|
||||
///
|
||||
/// [Deep-linking]: https://core.telegram.org/bots#deep-linking
|
||||
/// [switch_inline]: https://core.telegram.org/bots/api#inlinekeyboardmarkup
|
||||
/// [Deep-linking]: https://core.telegram.org/bots#deep-linking
|
||||
pub switch_pm_parameter: String [into],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -11,7 +11,7 @@ impl_payload! {
|
|||
pub CreateNewStickerSet (CreateNewStickerSetSetters) => True {
|
||||
required {
|
||||
/// User identifier of sticker file owner
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
/// Short name of sticker set, to be used in `t.me/addstickers/` URLs (e.g., _animals_). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in _“\_by\_<bot username>”. <bot\_username>_ is case insensitive. 1-64 characters.
|
||||
pub name: String [into],
|
||||
/// Sticker set title, 1-64 characters
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -26,8 +26,8 @@ impl_payload! {
|
|||
optional {
|
||||
/// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove reply keyboard or to force a reply from the user.
|
||||
///
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
pub reply_markup: ReplyMarkup [into],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -15,7 +15,7 @@ impl_payload! {
|
|||
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
|
||||
pub chat_id: ChatId [into],
|
||||
/// Unique identifier of the target user
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -8,8 +8,8 @@ use crate::types::File;
|
|||
impl_payload! {
|
||||
/// Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a [`File`] object is returned. The file can then be downloaded via the link `https://api.telegram.org/file/bot<token>/<file_path>`, where `<file_path>` is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling [`GetFile`] again.
|
||||
///
|
||||
/// [`GetFile`]: crate::payloads::GetFile
|
||||
/// [`File`]: crate::types::File
|
||||
/// [`GetFile`]: crate::payloads::GetFile
|
||||
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
|
||||
pub GetFile (GetFileSetters) => File {
|
||||
required {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -13,7 +13,7 @@ impl_payload! {
|
|||
pub GetUserProfilePhotos (GetUserProfilePhotosSetters) => UserProfilePhotos {
|
||||
required {
|
||||
/// Unique identifier of the target user
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
}
|
||||
optional {
|
||||
/// Sequential number of the first photo to be returned. By default, all photos are returned.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -15,7 +15,7 @@ impl_payload! {
|
|||
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
|
||||
pub chat_id: ChatId [into],
|
||||
/// Unique identifier of the target user
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
}
|
||||
optional {
|
||||
/// Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -13,7 +13,7 @@ impl_payload! {
|
|||
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
|
||||
pub chat_id: ChatId [into],
|
||||
/// Unique identifier of the target user
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
}
|
||||
optional {
|
||||
/// Pass True, if the administrator can change chat title, photo and other settings
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -13,7 +13,7 @@ impl_payload! {
|
|||
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
|
||||
pub chat_id: ChatId [into],
|
||||
/// Unique identifier of the target user
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
/// A JSON-serialized object for new user permissions
|
||||
pub permissions: ChatPermissions,
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -47,8 +47,8 @@ impl_payload! {
|
|||
pub reply_to_message_id: i64,
|
||||
/// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove reply keyboard or to force a reply from the user.
|
||||
///
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
pub reply_markup: ReplyMarkup [into],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -20,13 +20,13 @@ impl_payload! {
|
|||
pub chat_id: ChatId [into],
|
||||
/// Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for [text messages], upload_photo for [photos], record_video or upload_video for [videos], record_audio or upload_audio for [audio files], upload_document for [general files], find_location for [location data], record_video_note or upload_video_note for [video notes].
|
||||
///
|
||||
/// [audio files]: crate::payloads::SendAudio
|
||||
/// [video notes]: crate::payloads::SendVideoNote
|
||||
/// [videos]: crate::payloads::SendVideo
|
||||
/// [text messages]: crate::payloads::SendMessage
|
||||
/// [video notes]: crate::payloads::SendVideoNote
|
||||
/// [photos]: crate::payloads::SendPhoto
|
||||
/// [location data]: crate::payloads::SendLocation
|
||||
/// [audio files]: crate::payloads::SendAudio
|
||||
/// [general files]: crate::payloads::SendDocument
|
||||
/// [location data]: crate::payloads::SendLocation
|
||||
pub action: ChatAction,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -34,8 +34,8 @@ impl_payload! {
|
|||
pub reply_to_message_id: i64,
|
||||
/// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove reply keyboard or to force a reply from the user.
|
||||
///
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
pub reply_markup: ReplyMarkup [into],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -28,8 +28,8 @@ impl_payload! {
|
|||
pub reply_to_message_id: i64,
|
||||
/// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove reply keyboard or to force a reply from the user.
|
||||
///
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
pub reply_markup: ReplyMarkup [into],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -47,8 +47,8 @@ impl_payload! {
|
|||
pub reply_to_message_id: i64,
|
||||
/// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove reply keyboard or to force a reply from the user.
|
||||
///
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
pub reply_markup: ReplyMarkup [into],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -8,8 +8,8 @@ use crate::types::{ChatId, InputFile, Message, ReplyMarkup};
|
|||
impl_payload! {
|
||||
/// As of [v.4.0], Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent [`Message`] is returned.
|
||||
///
|
||||
/// [`Message`]: crate::types::Message
|
||||
/// [v.4.0]: https://core.telegram.org/bots/api#document
|
||||
/// [`Message`]: crate::types::Message
|
||||
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
|
||||
pub SendVideoNote (SendVideoNoteSetters) => Message {
|
||||
required {
|
||||
|
@ -37,8 +37,8 @@ impl_payload! {
|
|||
pub reply_to_message_id: i64,
|
||||
/// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove reply keyboard or to force a reply from the user.
|
||||
///
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
pub reply_markup: ReplyMarkup [into],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -13,7 +13,7 @@ impl_payload! {
|
|||
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
|
||||
pub chat_id: ChatId [into],
|
||||
/// Unique identifier of the target user
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
/// New custom title for the administrator; 0-16 characters, emoji are not allowed
|
||||
pub custom_title: String [into],
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -13,7 +13,7 @@ impl_payload! {
|
|||
pub SetPassportDataErrors (SetPassportDataErrorsSetters) => True {
|
||||
required {
|
||||
/// User identifier
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
/// A JSON-serialized array describing the errors
|
||||
pub errors: Vec<PassportElementError> [collect],
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -13,7 +13,7 @@ impl_payload! {
|
|||
/// Name of the sticker set
|
||||
pub name: String [into],
|
||||
/// User identifier of sticker file owner
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
}
|
||||
optional {
|
||||
/// A **PNG** image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a **TGS** animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/animated_stickers#technical-requirements for animated sticker technical requirements. Pass a _file\_id_ as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. [More info on Sending Files »]. Animated sticker set thumbnail can't be uploaded via HTTP URL.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -27,8 +27,8 @@ impl_payload! {
|
|||
optional {
|
||||
/// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove reply keyboard or to force a reply from the user.
|
||||
///
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
pub reply_markup: ReplyMarkup [into],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -24,8 +24,8 @@ impl_payload! {
|
|||
optional {
|
||||
/// Additional interface options. A JSON-serialized object for an [inline keyboard], [custom reply keyboard], instructions to remove reply keyboard or to force a reply from the user.
|
||||
///
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
/// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
|
||||
/// [custom reply keyboard]: https://core.telegram.org/bots#keyboards
|
||||
pub reply_markup: ReplyMarkup [into],
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -13,7 +13,7 @@ impl_payload! {
|
|||
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
|
||||
pub chat_id: ChatId [into],
|
||||
/// Unique identifier of the target user
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
|
||||
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (e634f65).
|
||||
// **DO NOT EDIT THIS FILE**,
|
||||
// edit `cg` instead.
|
||||
use serde::Serialize;
|
||||
|
@ -11,7 +11,7 @@ impl_payload! {
|
|||
pub UploadStickerFile (UploadStickerFileSetters) => File {
|
||||
required {
|
||||
/// User identifier of sticker file owner
|
||||
pub user_id: u32,
|
||||
pub user_id: i32,
|
||||
/// PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. [More info on Sending Files »]
|
||||
///
|
||||
/// [More info on Sending Files »]: crate::types::InputFile
|
||||
|
|
Loading…
Reference in a new issue