This Telegram bot helps to send messages from customers and users to a private group where admins can answer them.
- your customer text the bot
- bot sends this message from the customer to Telegram chat with admins or support staff
- any member of this chat can reply to the message
- bot will send this message to the customer, not showing your identity
Clone the repository with:
$ git clone <repo_URL> && cd connect-support-bot
You should define these environment variables before using the bot:
TOKEN="your bot token from the BotFather, str"
SUPPORT_CHAT_ID="Telegram chat_id where messages will be resent or your own user_id, int"
It's better to do that in .env file. The file will be taken by docker-compose automatically.
$ docker-compose up --build
To start the bot without docker-compose, you may use:
$ python3 main.py
You may customize any bot message, especially the greeting message bot answers to /start command.
Templates are stored in ./templates
. The templates use Jinja2 syntax. You can add emoji defined in ./common/unicode.py
or define your own.
Project is created with:
- pyTelegramBotAPI 3.7.3
- Jinja2
This bot was inspired by the Livegram Bot. Other implementation with Heroku: telegram-support-bot