mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-10-26 17:05:57 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44ecc307e3 | ||
|
|
fca6dd6f80 | ||
|
|
eeb9fe5c3a | ||
|
|
12a1c08866 |
@@ -23,6 +23,9 @@ class DynamicMentionHandler(AbstractHandler):
|
||||
self.chat_repository = ChatRepository()
|
||||
|
||||
def handle(self, update: Update, context: CallbackContext) -> None:
|
||||
if hasattr(update, 'message_reaction'):
|
||||
return
|
||||
|
||||
users = self.chat_repository.get_users_for_group(self.inbound)
|
||||
|
||||
Replier.markdown(update, MessageBuilder.mention_message(users))
|
||||
|
||||
@@ -18,7 +18,7 @@ class Replier:
|
||||
telegramRestrictionCharacters = ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']
|
||||
|
||||
for character in telegramRestrictionCharacters:
|
||||
formatted.replace(character, "\\" + character)
|
||||
formatted.replace(character, r'\{character}')
|
||||
|
||||
return formatted
|
||||
|
||||
|
||||
Reference in New Issue
Block a user