mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Bugfix in call.get_author for telegram bots
This commit is contained in:
parent
8f7fe39c27
commit
85c0d717da
1 changed files with 4 additions and 1 deletions
|
@ -82,7 +82,10 @@ class TelegramBot:
|
|||
for link in self.identity_chain:
|
||||
query = query.join(link.mapper.class_)
|
||||
query = query.filter(self.identity_column == user.id)
|
||||
return await asyncify(query.one_or_none)
|
||||
result = await asyncify(query.one_or_none)
|
||||
if result is None and error_if_none:
|
||||
raise UnregisteredError("Author is not registered!")
|
||||
return result
|
||||
|
||||
self.TelegramCall = TelegramCall
|
||||
|
||||
|
|
Loading…
Reference in a new issue