Bot created by salko-ua for my college.
-
Get a token from @BotFather in Telegram
-
Clone the repository (using the green button on the upper right) and install dependencies with
poetry install
-
Make your changes to the bot and create a pull request
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
- Function exist in this file
- Function add in this file
- Function delete in this file
- Function select in this file
- Function update in this file
- All utils write in
utils.py
(Functions that have frequent use) - Do not write single-use functions there
- path to utils.py write right
You can check all keyboards: