This is a small Viber BOT project implemented in Python with the Flask framework to make webhooks that can be called by the Viber server if users interacted with Viber bot.
1. MySQL- Python - Flask
-
Can send multiple messages to all Viber users who have subscribed to the bot at once.
-
Messages can be sent to multiple subscribers by sending them directly to the Viber Bot only from the admin Viber account.
-
Messages sent to Viber Bot from users are routed directly to the ADMIN Viber account.
-
Event information, such as unsubscriptions, subscriptions, and messages sent to BOT, is directly sent to Admin Viber account.
config
: Configuration files and settings.interface
: User interface components.models
: Data models and business logic.service
: Service layer for handling business logic.app.py
: Main application file.requirements.txt
: List of project dependencies.Dockerfile
: Docker configuration for containerization.values.py
: Additional configuration values.
NOTE: The server should run on HTTP(S), not HTTP. The Viber API strictly requires HTTPS connection.
Docker is required.
Go to project root direcotry and run
docker build -t viberbot .
After image is created run
docker run -d -p 5000:5000 --name bot --restart always --env-file .env viberbot