def __init__(self, booking: Booking):
classrooms_source = booking.get_classroom_source()
keys = []
self._keyboard = None
for building in classrooms_source.get_all_buildings():
building_command = "/" + building.get_name().lower().replace(" ", "_")
keys.append([KeyboardButton(building_command)])
if len(keys) > 0:
self._keyboard = ReplyKeyboardMarkup(keys)
super().__init__(booking, ["buildings"], False, exact_match=True)
评论列表
文章目录