mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-24 09:16:12 +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,
|
dispatching::dialogue::GetChatId,
|
||||||
requests::{
|
requests::{
|
||||||
DeleteMessage, EditMessageCaption, EditMessageText, ForwardMessage, PinChatMessage,
|
DeleteMessage, EditMessageCaption, EditMessageText, ForwardMessage, PinChatMessage,
|
||||||
Request, ResponseResult, SendAnimation, SendAudio, SendContact, SendDocument, SendLocation,
|
Request, ResponseResult, SendAnimation, SendAudio, SendContact, SendDice, SendDocument,
|
||||||
SendMediaGroup, SendMessage, SendPhoto, SendSticker, SendVenue, SendVideo, SendVideoNote,
|
SendLocation, SendMediaGroup, SendMessage, SendPhoto, SendSticker, SendVenue, SendVideo,
|
||||||
SendVoice,
|
SendVideoNote, SendVoice,
|
||||||
},
|
},
|
||||||
types::{ChatId, ChatOrInlineMessage, InputFile, InputMedia, Message},
|
types::{ChatId, ChatOrInlineMessage, InputFile, InputMedia, Message},
|
||||||
Bot,
|
Bot,
|
||||||
|
@ -153,4 +153,8 @@ impl UpdateWithCx<Message> {
|
||||||
pub fn pin_message(&self) -> PinChatMessage {
|
pub fn pin_message(&self) -> PinChatMessage {
|
||||||
self.bot.pin_chat_message(self.update.chat.id, self.update.id)
|
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…
Add table
Reference in a new issue