mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
Do not reply if unaddressed
This commit is contained in:
parent
e8fd43d978
commit
22a26988ca
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue