Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.message_handler(content_types=['text'])
- def send_text1(message):
- if message.text == '5 клас':
- bot.send_message(message.chat.id, 'Выбери свой класс! Что бы узнать росписание и т.д: ', reply_markup=markup5)
- if message.text == '5-А':
- bot.send_message(message.chat.id, 'Выбери что хочешь посмотреть:', reply_markup=markup)
- if message.text == 'Розклад на сьогодні':
- today = datetime.now().isoweekday() - 1
- bot.send_message(message.chat.id, class5A[today])
- if message.text == 'Розклад на тиждень':
- bot.send_message(message.chat.id, "Выбери день:", reply_markup=markup2)
- if message.text in days:
- day = days.index(message.text)
- bot.send_message(message.chat.id, f"Розклад на {message.text}\n" + class5A[day])
- if message.text == "Время до звонка":
- time_to_bell(message)
- if message.text == "Отмена..":
- bot.send_message(message.chat.id, "Меню:", reply_markup=markup_class)
- if message.text == "Отмена.":
- bot.send_message(message.chat.id, "Меню:", reply_markup=markup5)
- if message.text == "Отмена":
- bot.send_message(message.chat.id, "Меню:", reply_markup=markup)
- @bot.message_handler(content_types=['text'])
- def send2(message):
- if message.text == '5 клас':
- bot.send_message(message.chat.id, 'Выбери свой класс! Что бы узнать росписание и т.д: ', reply_markup=markup5)
- if message.text == '5-Б':
- bot.send_message(message.chat.id, 'Выбери что хочешь посмотреть:', reply_markup=markup)
- if message.text == 'Розклад на сьогодні':
- today = datetime.now().isoweekday() - 1
- bot.send_message(message.chat.id, class5A[today])
- if message.text == 'Розклад на тиждень':
- bot.send_message(message.chat.id, "Выбери день:", reply_markup=markup2)
- if message.text in days:
- day = days.index(message.text)
- bot.send_message(message.chat.id, f"Розклад на {message.text}\n" + class5A[day])
- if message.text == "Время до звонка":
- time_to_bell(message)
- if message.text == "Отмена..":
- bot.send_message(message.chat.id, "Меню:", reply_markup=markup_class)
- if message.text == "Отмена.":
- bot.send_message(message.chat.id, "Меню:", reply_markup=markup5)
- if message.text == "Отмена":
- bot.send_message(message.chat.id, "Меню:", reply_markup=markup)
Advertisement
Add Comment
Please, Sign In to add comment