Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yehuda-lev/Get_Chat_ID_Bot
A bot to receive the id of every Telegram chat
https://github.com/yehuda-lev/Get_Chat_ID_Bot
get-chat-id-telgram pyrogram-bot telegram-bot-python telegram-bots telegram-chat-id telegram-chatid telegram-id telegrambot
Last synced: 3 months ago
JSON representation
A bot to receive the id of every Telegram chat
- Host: GitHub
- URL: https://github.com/yehuda-lev/Get_Chat_ID_Bot
- Owner: yehuda-lev
- License: mit
- Created: 2023-03-26T13:31:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-02T16:01:42.000Z (3 months ago)
- Last Synced: 2024-08-03T17:11:28.786Z (3 months ago)
- Topics: get-chat-id-telgram, pyrogram-bot, telegram-bot-python, telegram-bots, telegram-chat-id, telegram-chatid, telegram-id, telegrambot
- Language: Python
- Homepage: https://t.me/GetChatID_IL_BOT
- Size: 255 KB
- Stars: 22
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Get_Chat_ID_Bot
## Description
A bot to receive the id of every Telegram chat
_You can check our bot [here](https://t.me/GetChatID_IL_BOT)._
## Setup
1. Clone the repository
```bash
git clone https://github.com/yehuda-lev/Get_Chat_ID_Bot.git
```## Setting up Environment Variables
To set up the environment variables for the project, follow these steps:
1. **Copy the `.env.example` file:**
```bash
cp .env.example .env
```1. **Edit the `.env` file:**
- Open the `.env` file in a text editor of your choice.
- Replace the placeholder values with your actual credentials. You can obtain these credentials from the following sources:- **Telegram Credentials:**
- `TELEGRAM_API_ID` and `TELEGRAM_API_HASH`: Obtain from [my.telegram.org](https://my.telegram.org).
- `TELEGRAM_BOT_TOKEN`: Create a new bot on [BotFather](https://t.me/BotFather).
- `TG_GROUP_TOPIC_ID`: ID of the Telegram group where the bot will operate.
- `ADMINS`: A comma-separated list of Telegram user IDs that will be granted admin privileges.
- `LIMIT_SPAM`: the number of the messages that can be sent in a minute.2. **Save the `.env` file:**
- After editing, save the changes to the `.env` file.By completing these steps, your environment variables will be properly configured for the project.
## Installation
Clone the repository to your local machine. Then, build the Docker image using the following command:
> If you want to rebuild the image, you can use the `--build` flag to force a rebuild:
> If you want to run the bot in the background, you can use the `-d` flag:
```bash
docker compose up
```## Credits
This project was created by [@yehudalev](https://t.me/yehudalev).---