Skip to content

Telegram Python bot that helps to manage institute group.

Notifications You must be signed in to change notification settings

masguit42/phys_bot

Repository files navigation

Telegram bot for Phystech.No Flood chat

This bot authorizes users before they can access student chat.

How to run

Create .env in the root folder (with your own values):

TELEGRAM_TOKEN="1111111:AAAAAAAAAAAAAAAAAA"
ADMIN_ID=111111111
LOGS_CHANNEL_ID="-1001111111111"
TELEGRAM_LOGS_CHAT_ID="-1001111111111"
CHANNEL_ID="-1001111111111"
MAIN_CHAT_ID="-1001111111111"

EMAIL_BOT="aaaaaaaaa@phystech.edu"
PASSWORD_EMAIL_BOT="1111111111"

DJANGO_DEBUG=True
N_CODE=6 # needs to be 6 because it is hardcoded in regexp for some reason

DATABASE_URL=sqlite:///db.sqlite3

Run with docker-compose:

docker compose up

Run without docker:

pip install -r requirements.txt
python manage.py migrate
python manage.py migrate --run-syncdb # creates db
python run_pooling.py                 # starts bot

About

Telegram Python bot that helps to manage institute group.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •