From db79a8a18f62cd2b8c3f2a64dda16f8fc228aec9 Mon Sep 17 00:00:00 2001 From: Hikari Date: Sun, 17 Apr 2022 07:06:11 +0000 Subject: [PATCH] Compatibilit tweak --- hikka/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hikka/utils.py b/hikka/utils.py index daaad68..1606e02 100755 --- a/hikka/utils.py +++ b/hikka/utils.py @@ -265,6 +265,9 @@ async def answer( **kwargs, ) -> Union[CallbackQuery, Message]: """Use this to give the response to a command""" + if isinstance(message, list) and message: + message = message[0] + if isinstance(message, (CallbackQuery, InlineCall)): await message.edit(response) return message