diff --git a/userge/plugins/utils/filters.py b/userge/plugins/utils/filters.py index 35dd5ed3a..ed4e24991 100644 --- a/userge/plugins/utils/filters.py +++ b/userge/plugins/utils/filters.py @@ -180,11 +180,12 @@ async def chat_filter(message: Message) -> None: if getattr(message, media_type, None): reply = True elif message.text: - input_text = message.text.strip() - if (input_text == name - or input_text.startswith(f"{name} ") - or input_text.endswith(f" {name}") - or f" {name} " in input_text): + l_name = name.lower() + input_text = message.text.strip().lower() + if (input_text == l_name + or input_text.startswith(f"{l_name} ") + or input_text.endswith(f" {l_name}") + or f" {l_name} " in input_text): reply = True if reply: await CHANNEL.forward_stored(client=message.client,