diff --git a/telethon/events/callbackquery.py b/telethon/events/callbackquery.py index aa101353..f04d65d7 100644 --- a/telethon/events/callbackquery.py +++ b/telethon/events/callbackquery.py @@ -53,7 +53,7 @@ class CallbackQuery(EventBuilder): elif hasattr(match, 'match') and callable(match.match): if not isinstance(getattr(match, 'pattern', b''), bytes): match = re.compile(match.pattern.encode('utf-8'), - match.flags & (~re.UNICODE)) + match.flags & (~re.UNICODE)) self.match = match.match else: