mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-05-20 09:14:07 +00:00
fixed bug when /join@everyone_mention_bot was treated as a message handler action
This commit is contained in:
parent
a6b441b197
commit
878091deae
@ -38,7 +38,7 @@ class InboundMessage:
|
||||
GroupNameValidator.validate(group_name)
|
||||
|
||||
# done upon resolving a message handler action
|
||||
if '@' in message_content:
|
||||
if '@' in message_content and '@everyone_mention_bot' not in message_content:
|
||||
searched_message_part = [part for part in message_content.split(' ') if '@' in part][0]
|
||||
group_name = re.sub(r'\W+', '', searched_message_part).lower()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user