Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.61 KB

README.md

File metadata and controls

60 lines (42 loc) · 1.61 KB

HelpDesk Bot

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.

  1. The client talks to the bot.
    The client talks to the bot screenshot

  2. The company receives the message and replies it.
    The company receives the message and replies it screenshot

  3. The client receives the answer and the process continues.
    The client receives the answer screenshot

Installation

  1. Install the requirements
    $ pip install -r requirements.txt
    $ sudo apt-get install redis-server
  1. Setup your bot token and the chat to which it will forward messages in the config.ini file.

  2. Run the redis-server

    $ redis-server
  1. 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()
  1. 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.

Contribute

Copyright (C) 2016 Júlia Rizza & licensed under MIT License