1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2021 - 2021, Rupansh Sekar and the Kilogramme (TBD) contributors
// SPDX-License-Identifier: MPL-2.0
use crate::consts::HELLO_TEXT;
use crate::userbot::{CommandHandlerResult, UserBot};
use grammers_client::types::{InputMessage, Message};

/// Edits the command message and greets you
///
/// ## Scope
/// Anywhere
///
/// ## Usage(s):
/// `!hello`
///
//UserBotCmd !hello
pub async fn hello(_bot: &mut UserBot, message: &mut Message) -> CommandHandlerResult {
    message.edit(InputMessage::markdown(HELLO_TEXT)).await?;
    Ok(())
}