UpdateWithCx::send_dice -> answer_dice

This commit is contained in:
Temirkhan Myrzamadi 2020-07-30 19:29:39 +06:00
parent c81ec1602a
commit 1989dcbe04
4 changed files with 4 additions and 4 deletions

View file

@ -103,7 +103,7 @@ async fn main() {
let bot = Bot::from_env();
teloxide::repl(bot, |message| async move {
message.send_dice().send().await?;
message.answer_dice().send().await?;
Ok(())
})
.await;

View file

@ -14,7 +14,7 @@ async fn run() {
let bot = Bot::from_env();
teloxide::repl(bot, |message| async move {
message.send_dice().send().await?;
message.answer_dice().send().await?;
Ok(())
})
.await;

View file

@ -154,7 +154,7 @@ impl UpdateWithCx<Message> {
self.bot.pin_chat_message(self.update.chat.id, self.update.id)
}
pub fn send_dice(&self) -> SendDice {
pub fn answer_dice(&self) -> SendDice {
self.bot.send_dice(self.update.chat.id)
}
}

View file

@ -16,7 +16,7 @@
//! let bot = Bot::from_env();
//!
//! teloxide::repl(bot, |message| async move {
//! message.send_dice().send().await?;
//! message.answer_dice().send().await?;
//! Ok(())
//! })
//! .await;