- Get
TELEGRAM_TOKEN
with@BotFather
on Telegram - Get
user_id
with@userinfobot
on Telegram - Chat
/start
,/ping
,/cancel
or any to echo the message sent - Dialogs in the chats folder
Docker
docker run --rm -e TELEGRAM_TOKEN="" -e TELEGRAM_USERS="{'user': user_id}" diegogslomp/aiogram
Local
git clone --single-branch https:/github.com/diegogslomp/aiogram bot
cd bot
pip install -r requirements.txt
Linux
export TELEGRAM_TOKEN=""
export TELEGRAM_USERS="{'user': user_id}"
python bot.py
Windows
$Env:TELEGRAM_TOKEN=""
$Env:TELEGRAM_USERS="{'user': user_id}"
python bot.py
Django
cd django-project
git clone --single-branch https:/github.com/diegogslomp/aiogram bot
cd bot
pip install -r requirements.txt
# Add _env keys to environment
# Add bot app in project settings
python run manage.py bot