mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Fix bug where get_author would return None on Telegram
This commit is contained in:
parent
f01e1b292a
commit
b98c8aa760
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@ class TelegramBot(GenericBot):
|
||||||
result = await asyncify(query.one_or_none)
|
result = await asyncify(query.one_or_none)
|
||||||
if result is None and error_if_none:
|
if result is None and error_if_none:
|
||||||
raise UnregisteredError("Author is not registered")
|
raise UnregisteredError("Author is not registered")
|
||||||
|
return result
|
||||||
|
|
||||||
return TelegramCall
|
return TelegramCall
|
||||||
|
|
||||||
def __init__(self, *,
|
def __init__(self, *,
|
||||||
|
|
Loading…
Reference in a new issue