Compatibilit tweak

pull/1/head
Hikari 2022-04-17 07:06:11 +00:00
parent 5b7a869f26
commit db79a8a18f
No known key found for this signature in database
GPG Key ID: 5FA52ACBB2AD964D
1 changed files with 3 additions and 0 deletions

View File

@ -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