mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-05-20 09:14:07 +00:00
dynamic mentioning group name to lowercase, updated CHANGELOG
This commit is contained in:
parent
6790426ba2
commit
568ac15b5e
@ -7,6 +7,8 @@ All notable changes to this project will be documented in this file.
|
|||||||
### Changed
|
### Changed
|
||||||
- `start` text
|
- `start` text
|
||||||
- Group name validation - those are forbidden now - `all`, `channel`, `chat`, `everyone`, `group`, `here`
|
- Group name validation - those are forbidden now - `all`, `channel`, `chat`, `everyone`, `group`, `here`
|
||||||
|
### Deleted
|
||||||
|
- mentioning user that performed `/everyone` or dynamic mention in bot response
|
||||||
## [0.2.0] - 26.10.2021
|
## [0.2.0] - 26.10.2021
|
||||||
### Added
|
### Added
|
||||||
- Inline Mode for `join`, `leave` & `everyone`
|
- Inline Mode for `join`, `leave` & `everyone`
|
||||||
|
@ -37,7 +37,7 @@ class InboundMessage:
|
|||||||
# done upon resolving a message handler action
|
# done upon resolving a message handler action
|
||||||
if '@' in update.message.text:
|
if '@' in update.message.text:
|
||||||
searched_message_part = [part for part in update.message.text.split(' ') if '@' in part][0]
|
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:
|
if group_name in GroupNameValidator.FORBIDDEN_GROUP_NAMES:
|
||||||
group_name = InboundMessage.default_group
|
group_name = InboundMessage.default_group
|
||||||
|
Loading…
x
Reference in New Issue
Block a user