Skip to content

A telegram bot created for the college, with the help of which you can view the schedule of classes and breaks, it also notifies about air alarms and changes in the schedule and other news

License

Notifications You must be signed in to change notification settings

salko-ua/KOTEKBOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KOTEKBOT

Support Ukraine Code style: black Python support versions badge Deploy

Bot created by salko-ua for my college.

Instalation

  1. Get a token from @BotFather in Telegram

  2. Clone the repository (using the green button on the upper right) and install dependencies with poetry install

  3. Make your changes to the bot and create a pull request

Database

Example usage database in the bot:

from src.data_base import Database

# in any function
async def any_functon():
    db = await Database.setup() # initialization
    if await db.admin_exists(user_id):
        ... # code

You can check if something exists by user_id

Utils

  • All utils write in utils.py (Functions that have frequent use)
  • Do not write single-use functions there
  • path to utils.py write right

Keyboards

You can check all keyboards:

About

A telegram bot created for the college, with the help of which you can view the schedule of classes and breaks, it also notifies about air alarms and changes in the schedule and other news

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published