diff --git a/src/bot/api.rs b/src/bot/api.rs index f03e5cd9..e96f9216 100644 --- a/src/bot/api.rs +++ b/src/bot/api.rs @@ -299,11 +299,11 @@ impl Requester for Bot { type SendDice = JsonRequest; - fn send_dice(&self, chat_id: C, emoji: crate::types::DiceEmoji) -> Self::SendDice + fn send_dice(&self, chat_id: C) -> Self::SendDice where C: Into, { - Self::SendDice::new(self.clone(), payloads::SendDice::new(chat_id, emoji)) + Self::SendDice::new(self.clone(), payloads::SendDice::new(chat_id)) } type SendChatAction = JsonRequest; diff --git a/src/local_macros.rs b/src/local_macros.rs index 25cffd7f..271d7cad 100644 --- a/src/local_macros.rs +++ b/src/local_macros.rs @@ -373,7 +373,7 @@ macro_rules! impl_payload { } #[macro_use] -// This macro is auto generated by `cg` (9a82143). +// This macro is auto generated by `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(&self, chat_id: C, emoji: DiceEmoji) -> Self::SendDice where C: Into { + fn send_dice(&self, chat_id: C) -> Self::SendDice where C: Into { 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) => { diff --git a/src/payloads/add_sticker_to_set.rs b/src/payloads/add_sticker_to_set.rs index 1a24bf81..e0eabc79 100644 --- a/src/payloads/add_sticker_to_set.rs +++ b/src/payloads/add_sticker_to_set.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/answer_callback_query.rs b/src/payloads/answer_callback_query.rs index 1ff7f262..7cb28587 100644 --- a/src/payloads/answer_callback_query.rs +++ b/src/payloads/answer_callback_query.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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, diff --git a/src/payloads/answer_inline_query.rs b/src/payloads/answer_inline_query.rs index 7c970a97..8abddc59 100644 --- a/src/payloads/answer_inline_query.rs +++ b/src/payloads/answer_inline_query.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/answer_pre_checkout_query.rs b/src/payloads/answer_pre_checkout_query.rs index ec884ba9..a168b72b 100644 --- a/src/payloads/answer_pre_checkout_query.rs +++ b/src/payloads/answer_pre_checkout_query.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/answer_shipping_query.rs b/src/payloads/answer_shipping_query.rs index b00b29c1..5572c136 100644 --- a/src/payloads/answer_shipping_query.rs +++ b/src/payloads/answer_shipping_query.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/create_new_sticker_set.rs b/src/payloads/create_new_sticker_set.rs index 1b74097a..2504ce00 100644 --- a/src/payloads/create_new_sticker_set.rs +++ b/src/payloads/create_new_sticker_set.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/delete_chat_photo.rs b/src/payloads/delete_chat_photo.rs index 23165b38..b27666aa 100644 --- a/src/payloads/delete_chat_photo.rs +++ b/src/payloads/delete_chat_photo.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/delete_chat_sticker_set.rs b/src/payloads/delete_chat_sticker_set.rs index ba87b16a..1eaf60be 100644 --- a/src/payloads/delete_chat_sticker_set.rs +++ b/src/payloads/delete_chat_sticker_set.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/delete_message.rs b/src/payloads/delete_message.rs index cf31bf93..22be46fc 100644 --- a/src/payloads/delete_message.rs +++ b/src/payloads/delete_message.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/delete_sticker_from_set.rs b/src/payloads/delete_sticker_from_set.rs index b432c6ce..f4c4dc22 100644 --- a/src/payloads/delete_sticker_from_set.rs +++ b/src/payloads/delete_sticker_from_set.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/delete_webhook.rs b/src/payloads/delete_webhook.rs index ebdd2823..cf741a3d 100644 --- a/src/payloads/delete_webhook.rs +++ b/src/payloads/delete_webhook.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/edit_message_caption.rs b/src/payloads/edit_message_caption.rs index 3b626d28..58608b40 100644 --- a/src/payloads/edit_message_caption.rs +++ b/src/payloads/edit_message_caption.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/edit_message_caption_inline.rs b/src/payloads/edit_message_caption_inline.rs index 565b7486..1d9d75cf 100644 --- a/src/payloads/edit_message_caption_inline.rs +++ b/src/payloads/edit_message_caption_inline.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/edit_message_live_location.rs b/src/payloads/edit_message_live_location.rs index c183cb0a..47d1f047 100644 --- a/src/payloads/edit_message_live_location.rs +++ b/src/payloads/edit_message_live_location.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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], } } diff --git a/src/payloads/edit_message_live_location_inline.rs b/src/payloads/edit_message_live_location_inline.rs index 79389c4a..99a477fd 100644 --- a/src/payloads/edit_message_live_location_inline.rs +++ b/src/payloads/edit_message_live_location_inline.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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], } } diff --git a/src/payloads/edit_message_media.rs b/src/payloads/edit_message_media.rs index f85aa27f..ebf88244 100644 --- a/src/payloads/edit_message_media.rs +++ b/src/payloads/edit_message_media.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/edit_message_media_inline.rs b/src/payloads/edit_message_media_inline.rs index 1a3b5d28..f1c2a823 100644 --- a/src/payloads/edit_message_media_inline.rs +++ b/src/payloads/edit_message_media_inline.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/edit_message_reply_markup.rs b/src/payloads/edit_message_reply_markup.rs index cc7b2777..54f7344f 100644 --- a/src/payloads/edit_message_reply_markup.rs +++ b/src/payloads/edit_message_reply_markup.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/edit_message_reply_markup_inline.rs b/src/payloads/edit_message_reply_markup_inline.rs index a34db1a6..ef3f0c9e 100644 --- a/src/payloads/edit_message_reply_markup_inline.rs +++ b/src/payloads/edit_message_reply_markup_inline.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/edit_message_text.rs b/src/payloads/edit_message_text.rs index fe475bce..f49aa53a 100644 --- a/src/payloads/edit_message_text.rs +++ b/src/payloads/edit_message_text.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/edit_message_text_inline.rs b/src/payloads/edit_message_text_inline.rs index 758de475..4ecdbfc3 100644 --- a/src/payloads/edit_message_text_inline.rs +++ b/src/payloads/edit_message_text_inline.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/export_chat_invite_link.rs b/src/payloads/export_chat_invite_link.rs index 44b5ec3d..86b861c2 100644 --- a/src/payloads/export_chat_invite_link.rs +++ b/src/payloads/export_chat_invite_link.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/forward_message.rs b/src/payloads/forward_message.rs index ce11ac85..2afb7845 100644 --- a/src/payloads/forward_message.rs +++ b/src/payloads/forward_message.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_chat.rs b/src/payloads/get_chat.rs index c110722c..c04619d0 100644 --- a/src/payloads/get_chat.rs +++ b/src/payloads/get_chat.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_chat_administrators.rs b/src/payloads/get_chat_administrators.rs index 10cf24e4..63af85dd 100644 --- a/src/payloads/get_chat_administrators.rs +++ b/src/payloads/get_chat_administrators.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_chat_member.rs b/src/payloads/get_chat_member.rs index f5e80f55..b29f05ed 100644 --- a/src/payloads/get_chat_member.rs +++ b/src/payloads/get_chat_member.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_chat_members_count.rs b/src/payloads/get_chat_members_count.rs index 0fd2c05e..dd48952b 100644 --- a/src/payloads/get_chat_members_count.rs +++ b/src/payloads/get_chat_members_count.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_file.rs b/src/payloads/get_file.rs index 47d9225c..b5e29fd6 100644 --- a/src/payloads/get_file.rs +++ b/src/payloads/get_file.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_game_high_scores.rs b/src/payloads/get_game_high_scores.rs index 2678043a..565a607d 100644 --- a/src/payloads/get_game_high_scores.rs +++ b/src/payloads/get_game_high_scores.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_me.rs b/src/payloads/get_me.rs index 76e97ab7..8794d5a6 100644 --- a/src/payloads/get_me.rs +++ b/src/payloads/get_me.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_my_commands.rs b/src/payloads/get_my_commands.rs index bfa35ecb..8d75475a 100644 --- a/src/payloads/get_my_commands.rs +++ b/src/payloads/get_my_commands.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_sticker_set.rs b/src/payloads/get_sticker_set.rs index 35466950..a1b74857 100644 --- a/src/payloads/get_sticker_set.rs +++ b/src/payloads/get_sticker_set.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_updates.rs b/src/payloads/get_updates.rs index 3dba9e34..12965cc2 100644 --- a/src/payloads/get_updates.rs +++ b/src/payloads/get_updates.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_user_profile_photos.rs b/src/payloads/get_user_profile_photos.rs index 9ae52286..02cc174e 100644 --- a/src/payloads/get_user_profile_photos.rs +++ b/src/payloads/get_user_profile_photos.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/get_webhook_info.rs b/src/payloads/get_webhook_info.rs index 846c907a..daf89088 100644 --- a/src/payloads/get_webhook_info.rs +++ b/src/payloads/get_webhook_info.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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 { diff --git a/src/payloads/kick_chat_member.rs b/src/payloads/kick_chat_member.rs index 81f5014c..a51d6c6c 100644 --- a/src/payloads/kick_chat_member.rs +++ b/src/payloads/kick_chat_member.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/leave_chat.rs b/src/payloads/leave_chat.rs index 27af51a1..ad7b1e84 100644 --- a/src/payloads/leave_chat.rs +++ b/src/payloads/leave_chat.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/pin_chat_message.rs b/src/payloads/pin_chat_message.rs index b3d31f1b..831d7fc6 100644 --- a/src/payloads/pin_chat_message.rs +++ b/src/payloads/pin_chat_message.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/promote_chat_member.rs b/src/payloads/promote_chat_member.rs index 6d259b4a..9d4bc68c 100644 --- a/src/payloads/promote_chat_member.rs +++ b/src/payloads/promote_chat_member.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/restrict_chat_member.rs b/src/payloads/restrict_chat_member.rs index a168f493..10a1d685 100644 --- a/src/payloads/restrict_chat_member.rs +++ b/src/payloads/restrict_chat_member.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_animation.rs b/src/payloads/send_animation.rs index 364f821e..6e69e562 100644 --- a/src/payloads/send_animation.rs +++ b/src/payloads/send_animation.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_audio.rs b/src/payloads/send_audio.rs index 87cb3de6..9ae5a396 100644 --- a/src/payloads/send_audio.rs +++ b/src/payloads/send_audio.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_chat_action.rs b/src/payloads/send_chat_action.rs index d4e4b859..90cf1661 100644 --- a/src/payloads/send_chat_action.rs +++ b/src/payloads/send_chat_action.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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, } } diff --git a/src/payloads/send_contact.rs b/src/payloads/send_contact.rs index 2f617848..e97d6148 100644 --- a/src/payloads/send_contact.rs +++ b/src/payloads/send_contact.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_dice.rs b/src/payloads/send_dice.rs index a7400d23..759a6146 100644 --- a/src/payloads/send_dice.rs +++ b/src/payloads/send_dice.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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], } } diff --git a/src/payloads/send_document.rs b/src/payloads/send_document.rs index 8b9e9fbd..de5854df 100644 --- a/src/payloads/send_document.rs +++ b/src/payloads/send_document.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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], } } diff --git a/src/payloads/send_game.rs b/src/payloads/send_game.rs index 354573d9..b16536d9 100644 --- a/src/payloads/send_game.rs +++ b/src/payloads/send_game.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_invoice.rs b/src/payloads/send_invoice.rs index 8941bf16..e6b6dd06 100644 --- a/src/payloads/send_invoice.rs +++ b/src/payloads/send_invoice.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_location.rs b/src/payloads/send_location.rs index f9a213e1..712072bb 100644 --- a/src/payloads/send_location.rs +++ b/src/payloads/send_location.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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], } } diff --git a/src/payloads/send_media_group.rs b/src/payloads/send_media_group.rs index 3cdf6a1d..2241744a 100644 --- a/src/payloads/send_media_group.rs +++ b/src/payloads/send_media_group.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_message.rs b/src/payloads/send_message.rs index 9157d52f..e8757285 100644 --- a/src/payloads/send_message.rs +++ b/src/payloads/send_message.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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], } } diff --git a/src/payloads/send_photo.rs b/src/payloads/send_photo.rs index 4cc847bf..b1ea5ae4 100644 --- a/src/payloads/send_photo.rs +++ b/src/payloads/send_photo.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_poll.rs b/src/payloads/send_poll.rs index 5a83b5cc..870c8c0b 100644 --- a/src/payloads/send_poll.rs +++ b/src/payloads/send_poll.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_sticker.rs b/src/payloads/send_sticker.rs index 234b2951..f2d7254e 100644 --- a/src/payloads/send_sticker.rs +++ b/src/payloads/send_sticker.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_venue.rs b/src/payloads/send_venue.rs index 20ba4eb0..7d47446c 100644 --- a/src/payloads/send_venue.rs +++ b/src/payloads/send_venue.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/send_video.rs b/src/payloads/send_video.rs index e009fd0c..db789a09 100644 --- a/src/payloads/send_video.rs +++ b/src/payloads/send_video.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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], } } diff --git a/src/payloads/send_video_note.rs b/src/payloads/send_video_note.rs index 8aecd4fb..c53c00bc 100644 --- a/src/payloads/send_video_note.rs +++ b/src/payloads/send_video_note.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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], } } diff --git a/src/payloads/send_voice.rs b/src/payloads/send_voice.rs index d30e5b36..77605534 100644 --- a/src/payloads/send_voice.rs +++ b/src/payloads/send_voice.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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 { diff --git a/src/payloads/set_chat_administrator_custom_title.rs b/src/payloads/set_chat_administrator_custom_title.rs index 31b63c5e..8eb39719 100644 --- a/src/payloads/set_chat_administrator_custom_title.rs +++ b/src/payloads/set_chat_administrator_custom_title.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_chat_description.rs b/src/payloads/set_chat_description.rs index 8abbe59a..9e0650f7 100644 --- a/src/payloads/set_chat_description.rs +++ b/src/payloads/set_chat_description.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_chat_permissions.rs b/src/payloads/set_chat_permissions.rs index 196b320e..8aa73f8c 100644 --- a/src/payloads/set_chat_permissions.rs +++ b/src/payloads/set_chat_permissions.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_chat_photo.rs b/src/payloads/set_chat_photo.rs index 48b518cf..7578ae27 100644 --- a/src/payloads/set_chat_photo.rs +++ b/src/payloads/set_chat_photo.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_chat_sticker_set.rs b/src/payloads/set_chat_sticker_set.rs index e28e569f..353f12f3 100644 --- a/src/payloads/set_chat_sticker_set.rs +++ b/src/payloads/set_chat_sticker_set.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_chat_title.rs b/src/payloads/set_chat_title.rs index 1ccc4b9b..06c77581 100644 --- a/src/payloads/set_chat_title.rs +++ b/src/payloads/set_chat_title.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_game_score.rs b/src/payloads/set_game_score.rs index 8334f64c..75a32821 100644 --- a/src/payloads/set_game_score.rs +++ b/src/payloads/set_game_score.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_game_score_inline.rs b/src/payloads/set_game_score_inline.rs index 8b53accb..4adbc8ac 100644 --- a/src/payloads/set_game_score_inline.rs +++ b/src/payloads/set_game_score_inline.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_my_commands.rs b/src/payloads/set_my_commands.rs index 5cbc46cf..854fa351 100644 --- a/src/payloads/set_my_commands.rs +++ b/src/payloads/set_my_commands.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_passport_data_errors.rs b/src/payloads/set_passport_data_errors.rs index ebd3ad3a..021ce4b9 100644 --- a/src/payloads/set_passport_data_errors.rs +++ b/src/payloads/set_passport_data_errors.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_sticker_position_in_set.rs b/src/payloads/set_sticker_position_in_set.rs index 8b131b2a..30abb8a1 100644 --- a/src/payloads/set_sticker_position_in_set.rs +++ b/src/payloads/set_sticker_position_in_set.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_sticker_set_thumb.rs b/src/payloads/set_sticker_set_thumb.rs index 7b142106..62e7af35 100644 --- a/src/payloads/set_sticker_set_thumb.rs +++ b/src/payloads/set_sticker_set_thumb.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/set_webhook.rs b/src/payloads/set_webhook.rs index c73b843f..65ee07e1 100644 --- a/src/payloads/set_webhook.rs +++ b/src/payloads/set_webhook.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/stop_message_live_location.rs b/src/payloads/stop_message_live_location.rs index fdaa08e5..e93caada 100644 --- a/src/payloads/stop_message_live_location.rs +++ b/src/payloads/stop_message_live_location.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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 { diff --git a/src/payloads/stop_message_live_location_inline.rs b/src/payloads/stop_message_live_location_inline.rs index b9e18e98..b51a3572 100644 --- a/src/payloads/stop_message_live_location_inline.rs +++ b/src/payloads/stop_message_live_location_inline.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `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], } } diff --git a/src/payloads/stop_poll.rs b/src/payloads/stop_poll.rs index d1cf267f..1d50c4bf 100644 --- a/src/payloads/stop_poll.rs +++ b/src/payloads/stop_poll.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/unban_chat_member.rs b/src/payloads/unban_chat_member.rs index 76d73e4e..05c46665 100644 --- a/src/payloads/unban_chat_member.rs +++ b/src/payloads/unban_chat_member.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/unpin_chat_message.rs b/src/payloads/unpin_chat_message.rs index bfc16094..d01945e2 100644 --- a/src/payloads/unpin_chat_message.rs +++ b/src/payloads/unpin_chat_message.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/payloads/upload_sticker_file.rs b/src/payloads/upload_sticker_file.rs index 82957d99..c303f05b 100644 --- a/src/payloads/upload_sticker_file.rs +++ b/src/payloads/upload_sticker_file.rs @@ -1,4 +1,4 @@ -// This file is auto generated by `cg` (9a82143). +// This file is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; diff --git a/src/requests/requester.rs b/src/requests/requester.rs index 09ff0641..6328e396 100644 --- a/src/requests/requester.rs +++ b/src/requests/requester.rs @@ -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` (de3765b). + // This block is auto generated by `cg` (be02d84). // **DO NOT EDIT THIS BLOCK**, // edit `cg` instead. @@ -240,7 +240,7 @@ pub trait Requester { type SendDice: Request; /// For Telegram documentation see [`SendDice`]. - fn send_dice(&self, chat_id: C, emoji: DiceEmoji) -> Self::SendDice + fn send_dice(&self, chat_id: C) -> Self::SendDice where C: Into;