Everyone Mention Bot is simple, but useful telegram bot to gather group members attention.
You can create groups per chat to mention every user that joined the group by calling one command instead of mentioning them one by one.
First, users need to join the group to let mentioning them, to do that, they simply need to join specific group. It can be done in 2 ways:
- Command
/join
- Inline Mode
Users that have joined the group can be mentioned in 3 ways:
- Dynaminc Mentioning by
@
, for example@everyone
- Command
/everyone
- Inline Mode
To leave the group use one of the two ways:
- Command
/leave
- Inline Mode
To display available groups:
- Command
/groups
You can use @
character (as you would mention a user) to mention specific group.
All the below will mention users from default
group.
@all
, @channel
, @chat
, @everyone
, @group
, @here
.
If you did create a group named gaming
, you can simply use @gaming
in your text to mention them all.
Important: {group-name}
is not required, if not given, it will be set to default
.
Joins the group (if group did not exist before, it will be created).
/join {group_name}
Examples
without group name
with group name
Leaves the group (and deletes if no members are left).
/leave {group_name}
Examples
without group name
with group name
Mention everyone that joined requested group.
/everyone {group-name}
Examples
without group name
with group name
Will display available groups for this chat as well with members count.
Start & Help message
To use inline mode, type @everyone_mention_bot
in telegram message input or click on the Inline Mode
button from /start
command.
Type in your group name (you can leave it blank for default
group name), then click on one of the three following options.
docker-compose
in version1.25.0
docker
in version20.10.7
- copy the repository
git clone https://github.com/miloszowi/everyone-mention-telegram-bot.git
- copy environment files and fulfill empty values
cp .env.local .env
cp docker/config/app.env.local docker/config/app.env
cp docker/config/database.env.local docker/config/app.env
- start the project (
-d
flag will run containers in detached mode)
docker-compose up -d
docker/logs <container>
-
.env
MONGODB_INTERNAL_PORT
- Mongodb internal port (should be the same as declared inapp.env
)APP_INTERNAL_PORT
- App internal port (should be the same as declared inapp.env
)APP_EXPOSED_PORT
- App exposed port (if you are not using any reverse proxy it should be also the same as declared inapp.env
)
-
app.env
BOT_TOKEN
- your telegram bot token from BotFatherWEBHOOK_URL
- url for telegram webhooks (withour the bot token)PORT
- port used for initializing webhook & appMONGODB_DATABASE
- MongoDB database nameMONGODB_USERNAME
- MongoDB usernameMONGODB_PASSWORD
- MongoDB passwordMONGODB_HOSTNAME
- MongoDB host (defaultdatabase
- container name)MONGODB_PORT
- MongoDB port (default27017
- given in docker-compose configuration)BANNED_USERS
- user ids separated by comma that are not allowed to use the bot
-
database.env
MONGO_INITDB_ROOT_USERNAME
- conf fromapp.env
MONGO_INITDB_ROOT_PASSWORD
- conf fromapp.env
MONGO_INITDB_DATABASE
- conf fromapp.env
MONGODB_DATA_DIR
- directory to store MongoDB documents (inside a container)MONDODB_LOG_DIR
- path to logs storage