mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Fix CallbackQuery pattern= (#1230)
This commit is contained in:
parent
c4c263a85b
commit
2adc746143
|
@ -42,7 +42,7 @@ class CallbackQuery(EventBuilder):
|
||||||
if isinstance(data, str):
|
if isinstance(data, str):
|
||||||
data = data.encode('utf-8')
|
data = data.encode('utf-8')
|
||||||
if isinstance(pattern, str):
|
if isinstance(pattern, str):
|
||||||
pattern = data.encode('utf-8')
|
pattern = pattern.encode('utf-8')
|
||||||
|
|
||||||
match = data if data else pattern
|
match = data if data else pattern
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user