-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyboards.py
20 lines (16 loc) · 943 Bytes
/
keyboards.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Клавиатуры"""
from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
# Клавиатура главного меню
kb = ReplyKeyboardMarkup(resize_keyboard=True, keyboard=[
# [KeyboardButton('/start')], # ТЕСТОВАЯ ВРЕМЕННАЯ КНОПКА
[KeyboardButton('📜Статистика'), KeyboardButton('🌡️Установить лимит')],
[KeyboardButton('🆘Помощь')]
])
# Клавиатура выбора периода статистики
kb_statistic = ReplyKeyboardMarkup(resize_keyboard=True, keyboard=[
[KeyboardButton('📜 Дневная'), KeyboardButton('📜 Месячная')],
[KeyboardButton('📜 Годовая'), KeyboardButton('🏠Главное меню')]
])
# Клавиатура для перехода в главное меню
kb_main = ReplyKeyboardMarkup(resize_keyboard=True)
kb_main.add(KeyboardButton('🏠Главное меню'))