This commit is contained in:
Waffle 2020-11-13 20:47:47 +03:00
parent f0609c06bc
commit 62b65cb7a6
75 changed files with 104 additions and 99 deletions

View file

@ -184,6 +184,10 @@ macro_rules! impl_payload {
}
impl $Method {
// We mirror telegram API and can't do anything with too many arguments
#[allow(clippy::too_many_arguments)]
// It's just easier for macros to generate such code
#[allow(clippy::redundant_field_names)]
$vi fn new($($($fields : impl_payload!(@convert? $FTy $([$conv])?)),*)?) -> Self {
Self {
$(

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -10,8 +10,8 @@ impl_payload! {
///
/// >Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via [@Botfather] and accept the terms. Otherwise, you may use links like `t.me/your_bot?start=XXXX` that open your bot with a parameter.
///
/// [inline keyboards]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
/// [@Botfather]: https://t.me/botfather
/// [inline keyboards]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub AnswerCallbackQuery (AnswerCallbackQuerySetters) => True {
required {
@ -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
/// [`Game`]: crate::types::Game
/// [callback_game]: https://core.telegram.org/bots/api#inlinekeyboardbutton
/// [`Game`]: crate::types::Game
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,

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -9,7 +9,7 @@ impl_payload! {
/// Use this method to remove webhook integration if you decide to switch back to [`GetUpdates`]. Returns True on success. Requires no parameters.
///
/// [`GetUpdates`]: crate::payloads::GetUpdates
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
#[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
pub DeleteWebhook (DeleteWebhookSetters) => True {
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **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.
///
/// [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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -9,7 +9,7 @@ impl_payload! {
/// A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in form of a [`User`] object.
///
/// [`User`]: crate::types::User
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
#[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
pub GetMe (GetMeSetters) => User {
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -7,7 +7,7 @@ impl_payload! {
/// Use this method to get the current list of the bot's commands. Requires no parameters. Returns Array of [`BotCommand`] on success.
///
/// [`BotCommand`]: crate::types::BotCommand
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
#[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
pub GetMyCommands (GetMyCommandsSetters) => u32 {
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -8,9 +8,9 @@ use crate::types::{AllowedUpdate, Update};
impl_payload! {
/// Use this method to receive incoming updates using long polling ([wiki]). An Array of [`Update`] objects is returned.
///
/// [`Update`]: crate::types::Update
/// [wiki]: https://en.wikipedia.org/wiki/Push_technology#Long_polling
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
/// [`Update`]: crate::types::Update
#[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
pub GetUpdates (GetUpdatesSetters) => Vec<Update> {
optional {

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -10,7 +10,7 @@ impl_payload! {
///
/// [`GetUpdates`]: crate::payloads::GetUpdates
/// [`WebhookInfo`]: crate::types::WebhookInfo
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
#[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
pub GetWebhookInfo (GetWebhookInfoSetters) => WebhookInfo {
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,6 +1,7 @@
//! Payloads - data types sended to relegram
/// This module reexports all setters traits as `_`. When used with a glob import:
/// This module reexports all setters traits as `_`. When used with a glob
/// import:
/// ```
/// use teloxide_core::payloads::setters::*;
/// ```

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -44,8 +44,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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -10,8 +10,8 @@ impl_payload! {
///
/// For sending voice messages, use the [`SendVoice`] method instead.
///
/// [`SendVoice`]: crate::payloads::SendVoice
/// [`Message`]: crate::types::Message
/// [`SendVoice`]: crate::payloads::SendVoice
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub SendAudio (SendAudioSetters) => Message {
required {
@ -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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **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
/// [location data]: crate::payloads::SendLocation
/// [text messages]: crate::payloads::SendMessage
/// [general files]: crate::payloads::SendDocument
/// [video notes]: crate::payloads::SendVideoNote
/// [photos]: crate::payloads::SendPhoto
/// [location data]: crate::payloads::SendLocation
/// [audio files]: crate::payloads::SendAudio
/// [general files]: crate::payloads::SendDocument
pub action: ChatAction,
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -26,8 +26,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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -32,8 +32,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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -32,8 +32,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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **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.
///
/// [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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -36,8 +36,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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -8,8 +8,8 @@ use crate::types::{ChatId, InputFile, Message, ParseMode, ReplyMarkup};
impl_payload! {
/// Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as [`Document`]). On success, the sent [`Message`] is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.
///
/// [`Message`]: crate::types::Message
/// [`Document`]: crate::types::Document
/// [`Message`]: crate::types::Message
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub SendVideo (SendVideoSetters) => Message {
required {

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -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.
///
/// [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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -8,9 +8,9 @@ use crate::types::{ChatId, InputFile, Message, ParseMode, ReplyMarkup};
impl_payload! {
/// Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as [`Audio`] or [`Document`]). On success, the sent [`Message`] is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.
///
/// [`Audio`]: crate::types::Audio
/// [`Message`]: crate::types::Message
/// [`Document`]: crate::types::Document
/// [`Audio`]: crate::types::Audio
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub SendVoice (SendVoiceSetters) => Message {
required {

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -10,8 +10,8 @@ impl_payload! {
///
/// See also: [`StopMessageLiveLocationInline`](crate::payloads::StopMessageLiveLocationInline)
///
/// [`Message`]: crate::types::Message
/// [`StopMessageLiveLocation`]: crate::payloads::StopMessageLiveLocation
/// [`Message`]: crate::types::Message
#[derive(Debug, PartialEq, Clone, Serialize)]
pub StopMessageLiveLocation (StopMessageLiveLocationSetters) => Message {
required {

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (bc65e6f).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (455146e).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;