Fix CallbackQuery pattern= (#1230)

This commit is contained in:
painor 2019-07-10 16:37:36 +01:00 committed by Lonami
parent c4c263a85b
commit 2adc746143

View File

@ -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