mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
#289 fixed getMyCommands output
This commit is contained in:
parent
a5f9373381
commit
93b60b6d75
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue