A Python Telegram Bot that works as a helpdesk software.
When a client sends a support message to the bot, it forwards the message to you or your company's group and you can reply it. Replying the message makes the bot reply the client.
- Install the requirements
$ pip install -r requirements.txt
$ sudo apt-get install redis-server
-
Setup your bot token and the chat to which it will forward messages in the
config.ini
file. -
Run the redis-server
$ redis-server
- In another instance, open the Python shell and run:
from main import updater
updater.start_polling()
As long as you want your bot responding, keep this running. When you want to stop, just run:
updater.stop()
- Deploy HelpDesk Bot:
sudo docker build -t support-bot \
--build-arg bot_token='TOKEN' \
--build-arg chat_id='ID' .
sudo docker create --name redis-support-bot redis
sudo docker create --name support-bot --link redis-support-bot support-bot
sudo docker start redis-support-bot
sudo docker start support-bot
PS: Keep in mind that you will have to generate the locale .mo
files.
Copyright (C) 2016 Júlia Rizza & licensed under MIT License