mirror of https://github.com/coddrago/Heroku
Compatibilit tweak
parent
5b7a869f26
commit
db79a8a18f
|
@ -265,6 +265,9 @@ async def answer(
|
||||||
**kwargs,
|
**kwargs,
|
||||||
) -> Union[CallbackQuery, Message]:
|
) -> Union[CallbackQuery, Message]:
|
||||||
"""Use this to give the response to a command"""
|
"""Use this to give the response to a command"""
|
||||||
|
if isinstance(message, list) and message:
|
||||||
|
message = message[0]
|
||||||
|
|
||||||
if isinstance(message, (CallbackQuery, InlineCall)):
|
if isinstance(message, (CallbackQuery, InlineCall)):
|
||||||
await message.edit(response)
|
await message.edit(response)
|
||||||
return message
|
return message
|
||||||
|
|
Loading…
Reference in New Issue