mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-10-10 17:16:03 +00:00
dynamic mentioning group name to lowercase, updated CHANGELOG
This commit is contained in:
@@ -37,7 +37,7 @@ class InboundMessage:
|
||||
# done upon resolving a message handler action
|
||||
if '@' in update.message.text:
|
||||
searched_message_part = [part for part in update.message.text.split(' ') if '@' in part][0]
|
||||
group_name = re.sub(r'\W+', '', searched_message_part)
|
||||
group_name = re.sub(r'\W+', '', searched_message_part).lower()
|
||||
|
||||
if group_name in GroupNameValidator.FORBIDDEN_GROUP_NAMES:
|
||||
group_name = InboundMessage.default_group
|
||||
|
Reference in New Issue
Block a user