mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-05-21 09:44:07 +00:00
Compare commits
No commits in common. "main" and "0.3.2" have entirely different histories.
@ -23,9 +23,6 @@ class DynamicMentionHandler(AbstractHandler):
|
|||||||
self.chat_repository = ChatRepository()
|
self.chat_repository = ChatRepository()
|
||||||
|
|
||||||
def handle(self, update: Update, context: CallbackContext) -> None:
|
def handle(self, update: Update, context: CallbackContext) -> None:
|
||||||
if hasattr(update, 'message_reaction'):
|
|
||||||
return
|
|
||||||
|
|
||||||
users = self.chat_repository.get_users_for_group(self.inbound)
|
users = self.chat_repository.get_users_for_group(self.inbound)
|
||||||
|
|
||||||
Replier.markdown(update, MessageBuilder.mention_message(users))
|
Replier.markdown(update, MessageBuilder.mention_message(users))
|
||||||
|
@ -18,7 +18,7 @@ class Replier:
|
|||||||
telegramRestrictionCharacters = ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']
|
telegramRestrictionCharacters = ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']
|
||||||
|
|
||||||
for character in telegramRestrictionCharacters:
|
for character in telegramRestrictionCharacters:
|
||||||
formatted.replace(character, r'\{character}')
|
formatted.replace(character, "\\" + character)
|
||||||
|
|
||||||
return formatted
|
return formatted
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user