From 93b60b6d75a2530e0ffb14c12cf104255c055b6c Mon Sep 17 00:00:00 2001 From: Oleg A Date: Sun, 5 Apr 2020 17:25:16 +0300 Subject: [PATCH] #289 fixed getMyCommands output --- aiogram/bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/bot/bot.py b/aiogram/bot/bot.py index e8de768d..d677e060 100644 --- a/aiogram/bot/bot.py +++ b/aiogram/bot/bot.py @@ -1549,7 +1549,7 @@ class Bot(BaseBot, DataMixin, ContextInstanceMixin): payload = generate_payload(**locals()) result = await self.request(api.Methods.GET_MY_COMMANDS, payload) - return result + return [types.BotCommand(**bot_command_data) for bot_command_data in result] async def edit_message_text(self, text: base.String, chat_id: typing.Union[base.Integer, base.String, None] = None,