| Total Complexity | 1 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | |||
| 3 | |||
| 4 | from aiogram import types |
||
| 5 | |||
| 6 | |||
| 7 | """ |
||
| 8 | |||
| 9 | |||
| 10 | Created on 10.09.2021 |
||
| 11 | |||
| 12 | @author: Nikita |
||
| 13 | |||
| 14 | |||
| 15 | """ |
||
| 16 | |||
| 17 | |||
| 18 | async def set_default_commands(dp): |
||
| 19 | |||
| 20 | await dp.bot.set_my_commands( |
||
| 21 | [ |
||
| 22 | types.BotCommand("start", "Запустить бота"), |
||
| 23 | types.BotCommand("help", "Вывести справку"), |
||
| 24 | types.BotCommand("dice", "Подбросить кубик"), |
||
| 25 | ] |
||
| 27 |