Support Bot is a specially designed Telegram bot for feedback. With built-in support for topics, all user messages are intelligently categorized, promoting organized and streamlined discussion in your group. It provides features such as blocking unwanted users, silent mode in topics for discreet conversations, and more. Improve group communication with Support Bot!
- Bot example: @nessshonSupportBot
- Linked group example: @nessshonSupportGroup
About Limits:
Specific limits are not specified in the documentation, but the community has shared some rough numbers.
โข Limit on topic creation per minute ~20.
โข Limit on the total number of topics ~1M.
Available bot commands for admins (DEV_ID)
-
/newsletter
- Open the newsletter menu.Use this command to initiate a newsletter for users. Note: This command works only in private chats.
Available bot commands in the group topics
-
/ban
- Block/Unblock User.Use this command to block or unblock a user, controlling the receipt of messages from them.
-
/silent
- Activate/Deactivate Silent Mode.Enable or disable silent mode to prevent messages from being sent to the user.
-
/information
- User Information.Receive a message containing basic information about the user.
Preparation
- Create a bot via @BotFather and save the TOKEN (referred to as
BOT_TOKEN
later). - Create a group and enable topics in the group settings.
- Add the created bot to the group as an admin and grant it the necessary rights to manage topics.
- Add the bot What's my Telegram ID? to the group and save the group ID (referred to
as
BOT_GROUP_ID
later). - Optionally, customize the bot texts to fit your needs in the file named texts.
- Optionally, add the language you need to SUPPORTED_LANGUAGES and add the appropriate codes to the data.
Installation
-
Clone the repository:
git clone https://github.com/nessshon/support-bot.git
-
Change into the bot directory:
cd support-bot
-
Clone environment variables file:
cp .env.example .env
-
Configure environment variables variables file:
nano .env
-
Running a bot in a docker container:
docker-compose up --build
Click to expand
Here is a comprehensive reference guide for the environment variables used in the project:
Variable | Type | Description | Example |
---|---|---|---|
BOT_TOKEN |
str |
Bot token, obtained from @BotFather | 123456:qweRTY |
BOT_DEV_ID |
int |
User ID of the bot developer or admin | 123456789 |
BOT_GROUP_ID |
str |
Group ID where the bot operates | -100123456789 |
REDIS_HOST |
str |
The hostname or IP address of the Redis server | redis |
REDIS_PORT |
int |
The port number on which the Redis server is running | 6379 |
REDIS_DB |
int |
The Redis database number | 1 |
We welcome your contributions! If you have ideas for improvement or have identified a bug, please create an issue or submit a pull request.
TON - EQC-3ilVr-W0Uc3pLrGJElwSaFxvhXXfkiQA3EwdVBHNNess
USDT (TRC-20) - TJjADKFT2i7jqNJAxkgeRm5o9uarcoLUeR
This repository is distributed under the MIT License. Feel free to use, modify, and distribute the code in accordance with the terms of the license.