Réagissons correctement aux pings depuis telegram

This commit is contained in:
Klafyvel 2018-08-04 16:21:35 +02:00
parent 03aaeef909
commit d5d04db55c

View file

@ -16,7 +16,7 @@ class Bot:
self.reactions = {}
self.pings = []
self.on_join = None
self.tg_user_match = re.compile('^<(?P<username>.+)>')
self.tg_user_match = re.compile('^<\x03..\x02\x02(?P<username>.+)\x03>')
self.ping_match = re.compile('^(<.+> )?\@?{name}'.format(name=nickname))
def add_reaction(self, match, reaction):