Skip to content

diegogslomp/aiogram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Finite State Machine Telegram Bot

  1. Get TELEGRAM_TOKEN with @BotFather on Telegram
  2. Get user_id with @userinfobot on Telegram
  3. Chat /start, /ping, /cancel or any to echo the message sent
  4. 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

Releases

No releases published

Packages

No packages published