Answer the question
In order to leave comments, you need to log in
How to add a description of your commands to the list using aiogram?
When you type "/" in the telegram bot, a menu appears with possible commands and their descriptions. I know this is done with types.BotCommand(), however I can't figure out how to apply this correctly.
Answer the question
In order to leave comments, you need to log in
from aiogram import types
async def set_default_commands(dp):
await dp.bot.set_my_commands([
types.BotCommand("start", "Запустить бота"),
types.BotCommand("help", "Помощь"),
types.BotCommand("test", "Тест"),
types.BotCommand("form", "Форма"),
types.BotCommand("menu", "Меню"),
])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question