Add UpdateWithCx::send_dice

This commit is contained in:
Temirkhan Myrzamadi 2020-07-29 15:54:43 +06:00
parent bfeec6b1bb
commit a6eac93043
3 changed files with 7 additions and 3 deletions

View file

@ -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<Message> {
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)
}
}