Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/babban33/temporary-bot


https://github.com/babban33/temporary-bot

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

        

# Setup

## Create a Telegram bot
- Open Telegram and search for **BotFather**
- Start Chat and use `/newbot` command.
- Follow the instructions to name the bot and provide a username ending with **bot** keyword.

## Create Two Groups and topics inside them and add bot to the groups with admin permissions.

Clone Repository:
```bash
git clone https://github.com/Babban33/temporary-bot.git
```

Move inside the root directory:
```bash
cd temporary-bot
```

Create Python virtual Environment:
```bash
python -m venv venv
venv\Scripts\activate
```

Install Libraries:
```bash
python install -r requirements.txt
```

Get the token and create an `.env` file and populate it with:
```bash
BOT_TOKEN=
```

Get The Group, Topic and Admin ID:
```bash
python getIds.py
```

Add Id's in .env file. Your env file should look like this:
```bash
BOT_TOKEN=
GROUP_A_ID=
GROUP_B_ID=
TOPIC_1_ID=
TOPIC_2_ID=
ADMIN_USER_ID=
```

Run Application:
```bash
python telegram_topic_forwarder.py
```