Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/babban33/temporary-bot
https://github.com/babban33/temporary-bot
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/babban33/temporary-bot
- Owner: Babban33
- Created: 2025-01-20T06:32:09.000Z (20 days ago)
- Default Branch: master
- Last Pushed: 2025-01-20T07:25:25.000Z (20 days ago)
- Last Synced: 2025-01-20T07:37:17.758Z (20 days ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```