Small fix for callbackquery

This commit is contained in:
painor 2019-07-10 14:37:33 +01:00 committed by GitHub
parent c4c263a85b
commit bcc462ffc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ class CallbackQuery(EventBuilder):
if isinstance(data, str):
data = data.encode('utf-8')
if isinstance(pattern, str):
pattern = data.encode('utf-8')
pattern = pattern.encode('utf-8')
match = data if data else pattern