diegogslomp/aiogram

By diegogslomp

Updated almost 2 years ago

🤖💬 Telegram chatbot that only replies to authorized users

Image
Message queues
API management
0

388

diegogslomp/aiogram repository overview

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

Tag summary

Content type

Image

Digest

sha256:53ad45b8b

Size

26.8 MB

Last updated

almost 2 years ago

docker pull diegogslomp/aiogram