use teloxide::prelude::*;

#[tokio::main]
async fn main() {
    pretty_env_logger::init();
    log::info!("Starting throw dice bot...");

    let bot = Bot::from_env();

    teloxide::repl(bot, |bot: Bot, msg: Message| async move {
        //TODO: get message, check if youtube url and return message with languages
        //bot.send_dice(msg.chat.id).await?;
        /*
        let mut keyboard: Vec<Vec<InlineKeyboardButton>> = vec![];


        let row = vec![

        ];

        keyboard.push(row);

*/
        if msg.text().unwrap_or("") == "hurr" {
            bot.send_message(msg.chat.id, "hurr")

                // .reply_markup(  )
                .await?;
        }
        Ok(())
    })
    .await;
}

Изменить пасту