mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Add UpdateWithCx::send_dice
This commit is contained in:
parent
bfeec6b1bb
commit
a6eac93043
3 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue