13 lines
380 B
Rust
13 lines
380 B
Rust
use teloxide::{adaptors::Throttle, prelude::*};
|
|
|
|
/// Handles /start command by sending the greeting message
|
|
pub async fn start(bot: Throttle<Bot>, msg: Message) -> crate::Result<()> {
|
|
bot.send_message(
|
|
msg.chat.id,
|
|
"Hi! This bot can be used to store the passwords securely. \
|
|
Use /help command to get the list of commands",
|
|
)
|
|
.await?;
|
|
Ok(())
|
|
}
|