fix self_info example

This commit is contained in:
Waffle 2021-01-26 13:43:34 +03:00
parent 5b328105fa
commit bfef7f3c5d

View file

@ -15,7 +15,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let me = bot.get_me().await?;
bot.send_dice(chat_id, DiceEmoji::Dice).await?;
bot.send_dice(chat_id).emoji(DiceEmoji::Dice).await?;
bot.send_message(chat_id, format!("Hi, my name is **{}** 👋", me.first_name))
.await?;