added crud operations for Course

This commit is contained in:
Hosein
2026-01-01 16:24:34 +03:30
parent 4767a1af15
commit 389a763571
8 changed files with 379 additions and 20 deletions
+2 -5
View File
@@ -1,6 +1,8 @@
from telebot import types
from bot.utils.auth import is_authenticated
# TODO: Add Pagincation to Showing rows of entities (To all entities)
def register(bot):
@bot.message_handler(commands=["start"])
@@ -16,11 +18,6 @@ def register(bot):
bot.reply_to(message, "Use buttons to fetch from database.",
reply_markup=markup)
@bot.message_handler(func=lambda message: message.text in ["Show Courses", "Show Tag", "Show Categories"])
def handle_test_options(message):
option = message.text
bot.send_message(message.chat.id, f"You selected: {option}")
def startMarkup():
markup = types.ReplyKeyboardMarkup(