added CRUD for Students
This commit is contained in:
@@ -12,14 +12,7 @@ def register(bot):
|
||||
bot.send_message(
|
||||
message.chat.id, "Welcome! Use buttons to fetch from database.")
|
||||
|
||||
markup = types.ReplyKeyboardMarkup(
|
||||
row_width=2, one_time_keyboard=True, resize_keyboard=True)
|
||||
btn1 = types.KeyboardButton("Show Students")
|
||||
btn2 = types.KeyboardButton("Show Teachers")
|
||||
btn3 = types.KeyboardButton("Show Courses")
|
||||
btn4 = types.KeyboardButton("Show Tag")
|
||||
btn5 = types.KeyboardButton("Show Categories")
|
||||
markup.add(btn1, btn2, btn3, btn4, btn5)
|
||||
markup = startMarkup()
|
||||
bot.reply_to(message, "Use buttons to fetch from database.",
|
||||
reply_markup=markup)
|
||||
|
||||
@@ -35,7 +28,7 @@ def startMarkup():
|
||||
btn1 = types.KeyboardButton("Show Students")
|
||||
btn2 = types.KeyboardButton("Show Teachers")
|
||||
btn3 = types.KeyboardButton("Show Courses")
|
||||
btn4 = types.KeyboardButton("Show Tag")
|
||||
btn4 = types.KeyboardButton("Show Tags")
|
||||
btn5 = types.KeyboardButton("Show Categories")
|
||||
markup.add(btn1, btn2, btn3, btn4, btn5)
|
||||
return markup
|
||||
|
||||
Reference in New Issue
Block a user