dynamic mentioning group name to lowercase, updated CHANGELOG

This commit is contained in:
miloszowi
2021-11-12 13:15:00 +01:00
parent 6790426ba2
commit 568ac15b5e
2 changed files with 3 additions and 1 deletions

View File

@@ -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