mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-20 13:59:00 +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 command = splited.next()?;
|
||||||
let bot = splited.next();
|
let bot = splited.next();
|
||||||
match bot {
|
match bot {
|
||||||
Some(name) if name == bot_name.as_ref() => {}
|
Some(name) if name.eq_ignore_ascii_case(bot_name.as_ref()) => {}
|
||||||
None => {}
|
None => {}
|
||||||
_ => return None,
|
_ => return None,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue