Réagissons correctement aux pings depuis telegram
This commit is contained in:
parent
03aaeef909
commit
d5d04db55c
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class Bot:
|
||||||
self.reactions = {}
|
self.reactions = {}
|
||||||
self.pings = []
|
self.pings = []
|
||||||
self.on_join = None
|
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))
|
self.ping_match = re.compile('^(<.+> )?\@?{name}'.format(name=nickname))
|
||||||
|
|
||||||
def add_reaction(self, match, reaction):
|
def add_reaction(self, match, reaction):
|
||||||
|
|
Loading…
Reference in a new issue