mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-05-20 17:24:06 +00:00
68 lines
2.1 KiB
Markdown
68 lines
2.1 KiB
Markdown
|
# <p align="center"> [everyone-mention-telegram-bot](http://t.me/everyone_mention_bot)
|
||
|
<p align="center"> <img src="docs/logo.png" width="150"/>
|
||
|
<p align="center"> simple, but useful telegram bot to gather all of group members attention!
|
||
|
<!-- Icon made by https://www.freepik.com from https://www.flaticon.com/ -->
|
||
|
|
||
|
## Contents
|
||
|
|
||
|
* [Getting started.](#getting-started)
|
||
|
* [Installation](#installation)
|
||
|
* [Requirements](#requirements)
|
||
|
* [Env file](#env-file)
|
||
|
* [Commands](#commands)
|
||
|
* [`/in`](#in)
|
||
|
* [`/out`](#out)
|
||
|
* [`/everyone`](#everyone)
|
||
|
|
||
|
### Getting started
|
||
|
#### Installation
|
||
|
```bash
|
||
|
git clone https://github.com/miloszowi/everyone-mention-telegram-bot.git
|
||
|
pip install -r requirements.txt
|
||
|
python entrypoint.py
|
||
|
```
|
||
|
|
||
|
#### Requirements
|
||
|
- `python` with version specified in `runtime.txt`
|
||
|
- `pip` with version `20.0.2`
|
||
|
|
||
|
#### Env file
|
||
|
```bash
|
||
|
cp .env.local .env
|
||
|
```
|
||
|
and then fulfill copied `.env` file with required values
|
||
|
- `bot_token` - your telegram bot token from [BotFather](https://telegram.me/BotFather)
|
||
|
- `firebase_*` - all of those values you can find in firebase console
|
||
|
- `app_url` - your app url for retrieving webhooks
|
||
|
- `PORT` - port for your app
|
||
|
|
||
|
### Commands
|
||
|
#### `/in`
|
||
|
Will sign you in for everyone-mentions.
|
||
|
|
||
|

|
||
|
|
||
|
If you have already opted-in before, alternative reply will be displayed.
|
||
|
|
||
|

|
||
|
|
||
|
#### `/out`
|
||
|
Will sign you off for everyone-mentions.
|
||
|
|
||
|

|
||
|
|
||
|
If you haven't opted-in before, alternative reply will be displayed.
|
||
|
|
||
|

|
||
|
|
||
|
#### `/everone`
|
||
|
Will mention everyone that opted-in for everyone-mentions separated by spaces.
|
||
|
|
||
|
If user does not contain nickname, his ID will be present instead of nickname.
|
||
|
|
||
|

|
||
|
|
||
|
If there are no users that opted-in for mentioning, alternative reply will be displayed.
|
||
|
|
||
|

|