1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 12:04:20 +00:00

Do not reply if unaddressed

This commit is contained in:
Steffo 2024-09-12 05:22:54 +02:00
parent e8fd43d978
commit 22a26988ca
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -116,6 +116,12 @@ impl TelegramService {
} }
}; };
log::trace!("Checking if message is actually a command...");
if !text.starts_with("/") {
log::trace!("Message is not a command.");
return Ok(())
}
log::trace!("Retrieving bot's username..."); log::trace!("Retrieving bot's username...");
let username = me.username(); let username = me.username();