Merge pull request #38 from teloxide/make_send_dice_emoji_opt

fixup send_emoji method
This commit is contained in:
Temirkhan Myrzamadi 2021-01-08 03:53:29 +06:00 committed by GitHub
commit 2b13a7b5d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
80 changed files with 109 additions and 109 deletions

View file

@ -299,11 +299,11 @@ impl Requester for Bot {
type SendDice = JsonRequest<payloads::SendDice>;
fn send_dice<C>(&self, chat_id: C, emoji: crate::types::DiceEmoji) -> Self::SendDice
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice
where
C: Into<ChatId>,
{
Self::SendDice::new(self.clone(), payloads::SendDice::new(chat_id, emoji))
Self::SendDice::new(self.clone(), payloads::SendDice::new(chat_id))
}
type SendChatAction = JsonRequest<payloads::SendChatAction>;

View file

@ -373,7 +373,7 @@ macro_rules! impl_payload {
}
#[macro_use]
// This macro is auto generated by `cg` <https://github.com/teloxide/cg> (9a82143).
// This macro is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **DO NOT EDIT THIS MACRO**,
// edit `cg` instead.
macro_rules! requester_forward {
@ -580,9 +580,9 @@ macro_rules! requester_forward {
(@method send_dice $body:ident $ty:ident) => {
type SendDice = $ty![SendDice];
fn send_dice<C>(&self, chat_id: C, emoji: DiceEmoji) -> Self::SendDice where C: Into<ChatId> {
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice where C: Into<ChatId> {
let this = self;
$body!(send_dice this (chat_id: C, emoji: DiceEmoji))
$body!(send_dice this (chat_id: C))
}
};
(@method send_chat_action $body:ident $ty:ident) => {

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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.
///
/// [@Botfather]: https://t.me/botfather
/// [inline keyboards]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating
/// [@Botfather]: https://t.me/botfather
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub AnswerCallbackQuery (AnswerCallbackQuerySetters) => True {
required {
@ -27,9 +27,9 @@ impl_payload! {
///
/// Otherwise, you may use links like `t.me/your\_bot?start=XXXX` that open your bot with a parameter.
///
/// [`Game`]: crate::types::Game
/// [@Botfather]: https://t.me/botfather
/// [callback_game]: https://core.telegram.org/bots/api#inlinekeyboardbutton
/// [@Botfather]: https://t.me/botfather
/// [`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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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],
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -8,8 +8,8 @@ use crate::types::WebhookInfo;
impl_payload! {
/// Use this method to get current webhook status. Requires no parameters. On success, returns a [`WebhookInfo`] object. If the bot is using [`GetUpdates`], will return an object with the _url_ field empty.
///
/// [`GetUpdates`]: crate::payloads::GetUpdates
/// [`WebhookInfo`]: crate::types::WebhookInfo
/// [`GetUpdates`]: crate::payloads::GetUpdates
#[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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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].
///
/// [video notes]: crate::payloads::SendVideoNote
/// [audio files]: crate::payloads::SendAudio
/// [general files]: crate::payloads::SendDocument
/// [location data]: crate::payloads::SendLocation
/// [text messages]: crate::payloads::SendMessage
/// [photos]: crate::payloads::SendPhoto
/// [videos]: crate::payloads::SendVideo
/// [audio files]: crate::payloads::SendAudio
/// [general files]: crate::payloads::SendDocument
/// [location data]: crate::payloads::SendLocation
/// [video notes]: crate::payloads::SendVideoNote
pub action: ChatAction,
}
}

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -14,10 +14,10 @@ impl_payload! {
required {
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
pub chat_id: ChatId [into],
/// Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, or “🏀”. Dice can have values 1-6 for “🎲” and “🎯”, and values 1-5 for “🏀”. Defaults to “🎲”
pub emoji: DiceEmoji,
}
optional {
/// Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, or “🏀”. Dice can have values 1-6 for “🎲” and “🎯”, and values 1-5 for “🏀”. Defaults to “🎲”
pub emoji: DiceEmoji,
/// Sends the message [silently]. Users will receive a notification with no sound.
///
/// [silently]: https://telegram.org/blog/channels-2-0#silent-messages
@ -26,8 +26,8 @@ impl_payload! {
pub reply_to_message_id: i32,
/// 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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -38,8 +38,8 @@ impl_payload! {
pub reply_to_message_id: i32,
/// 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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -32,8 +32,8 @@ impl_payload! {
pub reply_to_message_id: i32,
/// 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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -32,8 +32,8 @@ impl_payload! {
pub reply_to_message_id: i32,
/// 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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -47,8 +47,8 @@ impl_payload! {
pub reply_to_message_id: i32,
/// 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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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: i32,
/// 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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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 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
/// [`Document`]: crate::types::Document
/// [`Audio`]: crate::types::Audio
/// [`Message`]: crate::types::Message
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub SendVoice (SendVoiceSetters) => Message {

View file

@ -1,4 +1,4 @@
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
@ -10,8 +10,8 @@ impl_payload! {
///
/// See also: [`StopMessageLiveLocationInline`](crate::payloads::StopMessageLiveLocationInline)
///
/// [`StopMessageLiveLocation`]: crate::payloads::StopMessageLiveLocation
/// [`Message`]: crate::types::Message
/// [`StopMessageLiveLocation`]: crate::payloads::StopMessageLiveLocation
#[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> (9a82143).
// This file is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **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],
}
}

View file

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

View file

@ -5,9 +5,9 @@ use crate::{
payloads::{GetMe, SendMessage, *},
requests::Request,
types::{
AllowedUpdate, BotCommand, ChatAction, ChatId, ChatPermissions, DiceEmoji,
InlineQueryResult, InputFile, InputMedia, InputSticker, LabeledPrice, PassportElementError,
PollType, TargetMessage,
AllowedUpdate, BotCommand, ChatAction, ChatId, ChatPermissions, InlineQueryResult,
InputFile, InputMedia, InputSticker, LabeledPrice, PassportElementError, PollType,
TargetMessage,
},
};
@ -20,7 +20,7 @@ use crate::{
pub trait Requester {
type Err: std::error::Error + Send;
// This block is auto generated by `cg` <https://github.com/teloxide/cg> (de3765b).
// This block is auto generated by `cg` <https://github.com/teloxide/cg> (be02d84).
// **DO NOT EDIT THIS BLOCK**,
// edit `cg` instead.
@ -240,7 +240,7 @@ pub trait Requester {
type SendDice: Request<Payload = SendDice, Err = Self::Err>;
/// For Telegram documentation see [`SendDice`].
fn send_dice<C>(&self, chat_id: C, emoji: DiceEmoji) -> Self::SendDice
fn send_dice<C>(&self, chat_id: C) -> Self::SendDice
where
C: Into<ChatId>;