|
@@ -3,13 +3,13 @@ from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
|
|
|
|
|
|
def main_kb():
|
|
|
keyboard = InlineKeyboardMarkup()
|
|
|
-# bind = InlineKeyboardButton()
|
|
|
-# my_events = InlineKeyboardButton()
|
|
|
-# all_events = InlineKeyboardButton()
|
|
|
-# '🎯 Запланировать мероприятие'
|
|
|
-# '🗒 Мои события'
|
|
|
-# '📅 Все события'
|
|
|
-# "👮 Управление"
|
|
|
+ bind = InlineKeyboardButton('🎯 Запланировать мероприятие', callback_data='bind_event')
|
|
|
+ my_events = InlineKeyboardButton('🗒 Мои события', callback_data='my_events')
|
|
|
+ all_events = InlineKeyboardButton('📅 Все события', callback_data='all_events')
|
|
|
+ keyboard.add(bind)
|
|
|
+ keyboard.add(my_events)
|
|
|
+ keyboard.add(all_events)
|
|
|
+ return keyboard
|
|
|
|
|
|
|
|
|
def register_kb():
|
|
@@ -17,3 +17,12 @@ def register_kb():
|
|
|
register = InlineKeyboardButton("Регистрация", callback_data="register")
|
|
|
keyboard.add(register)
|
|
|
return keyboard
|
|
|
+
|
|
|
+
|
|
|
+def events_range_kb():
|
|
|
+ keyboard = InlineKeyboardMarkup()
|
|
|
+ today_button = InlineKeyboardButton(text="За сегодня", callback_data="today")
|
|
|
+ week_button = InlineKeyboardButton(text="За неделю", callback_data="week")
|
|
|
+ month_button = InlineKeyboardButton(text="За месяц", callback_data="month")
|
|
|
+ keyboard.add(today_button, week_button, month_button)
|
|
|
+ return keyboard
|