diff --git a/examples/ping_pong_bot/Cargo.toml b/examples/dices_bot/Cargo.toml similarity index 100% rename from examples/ping_pong_bot/Cargo.toml rename to examples/dices_bot/Cargo.toml diff --git a/examples/ping_pong_bot/src/main.rs b/examples/dices_bot/src/main.rs similarity index 100% rename from examples/ping_pong_bot/src/main.rs rename to examples/dices_bot/src/main.rs diff --git a/src/dispatching/update_with_cx.rs b/src/dispatching/update_with_cx.rs index abd72e31..b16f19a4 100644 --- a/src/dispatching/update_with_cx.rs +++ b/src/dispatching/update_with_cx.rs @@ -2,9 +2,9 @@ use crate::{ dispatching::dialogue::GetChatId, requests::{ DeleteMessage, EditMessageCaption, EditMessageText, ForwardMessage, PinChatMessage, - Request, ResponseResult, SendAnimation, SendAudio, SendContact, SendDocument, SendLocation, - SendMediaGroup, SendMessage, SendPhoto, SendSticker, SendVenue, SendVideo, SendVideoNote, - SendVoice, + Request, ResponseResult, SendAnimation, SendAudio, SendContact, SendDice, SendDocument, + SendLocation, SendMediaGroup, SendMessage, SendPhoto, SendSticker, SendVenue, SendVideo, + SendVideoNote, SendVoice, }, types::{ChatId, ChatOrInlineMessage, InputFile, InputMedia, Message}, Bot, @@ -153,4 +153,8 @@ impl UpdateWithCx { pub fn pin_message(&self) -> PinChatMessage { self.bot.pin_chat_message(self.update.chat.id, self.update.id) } + + pub fn send_dice(&self) -> SendDice { + self.bot.send_dice(self.update.chat.id) + } }