Total Complexity | 1 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
2 | |||
3 | |||
4 | from aiogram.dispatcher.filters.builtin import CommandHelp |
||
5 | from aiogram import types |
||
6 | from loader import dp |
||
7 | |||
8 | |||
9 | """ |
||
10 | |||
11 | |||
12 | Created on 10.09.2021 |
||
13 | |||
14 | @author: Nikita |
||
15 | |||
16 | |||
17 | """ |
||
18 | |||
19 | |||
20 | @dp.message_handler(CommandHelp()) |
||
21 | async def bot_help(message: types.Message): |
||
22 | text = ("Список команд: ", |
||
23 | "/start - Начать диалог", |
||
24 | "/help - Получить справку", |
||
25 | "/dice - Подкинуть кубик") |
||
26 | |||
27 | await message.answer("\n".join(text)) |
||
28 |