Added new handle.

Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
2024-04-04 03:02:57 +02:00
parent 07c6ff69e0
commit 90ac6d77aa
10 changed files with 77 additions and 32 deletions

View File

@ -37,7 +37,7 @@ async fn rotator(replied_message: Message, text: String) {
#[async_trait::async_trait]
impl Handler for Rotator {
async fn react(&self, _: &Client, update: &Update) -> anyhow::Result<()> {
let Some(message) = get_message(update) else{
let Some(message) = get_message(update) else {
return Ok(());
};
if let Some(text) = message.text().strip_prefix(".rl").map(str::trim) {