Skip to content

omegaab2/telegram_class_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

classBot

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.

How To Run The Project

First Step :

install all requirements using terminal

pip install -r requirements.txt

Second Step :

  • Go to bot.py and add your Telegram Token:
from telebot import TeleBot, types


class BOT:
    __API = "PUT YOUR TOKEN HERE"
    bot = TeleBot(__API)

Third Step :

  • 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()

Note :

I am using postgresql in this project and all table I create it in tables

Forth Step :

Go to main.py and run the file 😁😎

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages