Telegram F1 Visa Tracker is a Python script that monitors a Telegram group specifically created for Indians seeking F1 visas. It filters messages and forwards relevant ones to designated users, providing timely notifications about available visa slots.
- Monitors a Telegram group for F1 visa-related messages.
- Filters out irrelevant messages containing forbidden keywords.
- Forwards eligible messages to designated users for notification.
- Easy setup and configuration using environment variables.
- Utilizes the Telegram API and the Telethon library.
- Python 3.7 or higher
- Pip package manager
- Telegram API credentials (API ID and hash)
- Telegram group name for F1 visa slots monitoring
To use the Telegram API and access your group, you need to obtain the API ID and hash. Follow the steps below to get your credentials:
- Visit the Telegram website: https://my.telegram.org/auth.
- Log in with your Telegram account.
- Under "API Development Tools," create a new application.
- Provide the required information such as the app name, short name, and platform.
- Once the application is created, you will see the API ID and hash. Keep them secure as they are sensitive credentials.
- Clone this repository:
git clone https://github.com/hppanpaliya/telegram-f1-visa-tracker.git
- Navigate to the project directory:
cd telegram-f1-visa-tracker
- Install the required dependencies:
pip install -r requirements.txt
- Create a .env file in the root directory.
- Add the following lines to the .env file, replacing the placeholders with your actual values:
API_ID=123456 API_HASH=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6 GROUP_NAME=F1_Visa_Slots_Only USER_NAME=your_telegram_username
On the first run, the script will prompt you to enter your mobile number with the country code. Follow the steps below to complete the setup:
-
Run the script using the following command:
python3 main.py
-
Enter your mobile number in the format +11232312131 or +919999911111 (including the country code).
-
You will receive an OTP on your Telegram account.
-
Enter the OTP when prompted by the script to authenticate and proceed.
The script will connect to the Telegram API, monitor the specified group, and forward eligible messages to the designated users.
Run the script using the following command:
python3 main.py
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please open an issue or submit a pull request.
This project is licensed under the terms of the MIT License.