mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Fix parse_command_with_prefix
case sensitive
This commit is contained in:
parent
108f4deb3d
commit
b62d85f2b6
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ where
|
|||
let command = splited.next()?;
|
||||
let bot = splited.next();
|
||||
match bot {
|
||||
Some(name) if name == bot_name.as_ref() => {}
|
||||
Some(name) if name.eq_ignore_ascii_case(bot_name.as_ref()) => {}
|
||||
None => {}
|
||||
_ => return None,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue