From b98c8aa760f7257a169aa14e3f450f3bc50da2cb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 5 May 2019 18:25:55 +0200 Subject: [PATCH] Fix bug where get_author would return None on Telegram --- royalnet/bots/telegram.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/royalnet/bots/telegram.py b/royalnet/bots/telegram.py index b61884ef..f6fd4a95 100644 --- a/royalnet/bots/telegram.py +++ b/royalnet/bots/telegram.py @@ -76,6 +76,8 @@ class TelegramBot(GenericBot): result = await asyncify(query.one_or_none) if result is None and error_if_none: raise UnregisteredError("Author is not registered") + return result + return TelegramCall def __init__(self, *,