Compare commits

...

4 Commits
0.3.2 ... main

Author SHA1 Message Date
miloszowi
44ecc307e3 another fix for reaction 2024-03-05 09:49:35 +01:00
miloszowi
fca6dd6f80 fixed issue when reacting to message triggered dynamic mention 2024-03-05 09:47:47 +01:00
miloszowi
eeb9fe5c3a fixed character escaping in replier 2024-03-05 08:32:48 +00:00
miloszowi
12a1c08866 fixed backslash escape in replier 2024-02-28 13:18:22 +00:00
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -18,7 +18,7 @@ class Replier:
telegramRestrictionCharacters = ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']
for character in telegramRestrictionCharacters:
formatted.replace(character, "\\" + character)
formatted.replace(character, r'\{character}')
return formatted