currently designed to help you learn new words
- /start - welcome message with information
- /new - show new word to learn it
- /repeat - repeat shown word to remember it
- /admin - list of admin's commands
(Replace DJANGO_SECRET_KEY
, TELEGRAM_TOKEN
and ADMIN_ID
with your parameters)
DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
DJANGO_SECRET_KEY=a1b2c3d4e5f6g7h8i9j0
TELEGRAM_TOKEN=1234567890:AAABACABADABACABAEABACABADABACABAAA
ADMIN_ID=123456789
docker-compose up
to see real-time logs or, for silently run,
docker-compose up -d
6) Send /start command to your bot and try to open Django admin panel (http://localhost:8000/tgadmin/)
docker exec -it bot bash
python manage.py createsuperuser
git clone https://github.com/Rigorich/LeBotDePython
cd LeBotDePython
pip install -r requirements.txt
DEBUG=0
DJANGO_SECRET_KEY=a1b2c3d4e5f6g7h8i9j0
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/DATABASE_NAME
TELEGRAM_TOKEN=1234567890:AAABACABADABACABAEABACABADABACABAAA
ADMIN_ID=123456789
sudo -u postgres psql -c "CREATE DATABASE DATABASE_NAME;"
python manage.py migrate
python run_pooling.py
5) Create super user and run Django admin panel (http://localhost:8000/tgadmin/)
python manage.py createsuperuser
python manage.py runserver