mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
make bot name check case insensitive
This commit is contained in:
parent
b5ce345648
commit
064b19e735
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ fn impl_parse(
|
|||
let bot = splited.next();
|
||||
let bot_name = bot_name.into();
|
||||
match bot {
|
||||
Some(name) if name == bot_name => {}
|
||||
Some(name) if name.eq_ignore_ascii_case(&bot_name) => {}
|
||||
None => {}
|
||||
Some(n) => return Err(ParseError::WrongBotName(n.to_string())),
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue