Telegram Bot To Manage The Class, you will be able to add students to your bot and the bot will be able to sends notifies to students subscriber and each student can get the exam info , homeworks and zoom links and pdf files you will upload it by admin.
install all requirements using terminal
pip install -r requirements.txt
- Go to bot.py and add your Telegram Token:
from telebot import TeleBot, types
class BOT:
__API = "PUT YOUR TOKEN HERE"
bot = TeleBot(__API)
- Go To db.py and add your database information
import psycopg2
import time
class DB:
# this method connect with database
def connect(self):
self.__con = psycopg2.connect(
host="your host",
database='your database',
user='your user',
password='your password', port=5432)
self.__cur = self.__con.cursor()
I am using postgresql in this project and all table I create it in tables
Go to main.py and run the file 😁😎