mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
UpdateWithCx::send_dice -> answer_dice
This commit is contained in:
parent
c81ec1602a
commit
1989dcbe04
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue