QueryIDExtractor is a Python script that uses the Telegram API to manage Telegram sessions and extract query_id from URLs.
- Python 3.7 or higher
telethonpackage
-
Install Python:
- Download and install Python from the official Python website.
-
Install Required Packages:
- Open Command Prompt and run:
pip install telethon
- Open Command Prompt and run:
-
Run the Script:
- Navigate to the script's directory and run:
python Query.py
- Navigate to the script's directory and run:
-
Install Python:
- Python usually comes pre-installed on macOS. If not, you can download it from the official Python website.
-
Install Required Packages:
- Open Terminal and run:
pip install telethon
- Open Terminal and run:
-
Run the Script:
- Navigate to the script's directory and run:
python Query.py
- Navigate to the script's directory and run:
-
Install Python:
- Install Python using your distribution's package manager. For example:
sudo apt-get update sudo apt-get install python3 python3-pip
- Install Python using your distribution's package manager. For example:
-
Install Required Packages:
- Open Terminal and run:
pip3 install telethon
- Open Terminal and run:
-
Run the Script:
- Navigate to the script's directory and run:
python3 Query.py
- Navigate to the script's directory and run:
-
Install Termux:
- Install Termux from the Google Play Store or F-Droid.
-
Install Python:
- Open Termux and run:
pkg update pkg install python
- Open Termux and run:
-
Install Required Packages:
- Run the following command in Termux:
pip install telethon
- Run the following command in Termux:
-
Run the Script:
- Navigate to the script's directory and run:
python Query.py
- Navigate to the script's directory and run:
-
Create
config.json:- Create a
config.jsonfile and add yourapi_idandapi_hash:{ "api_id": "YOUR_API_ID", "api_hash": "YOUR_API_HASH" }
- Create a
-
Add a Session:
- Run the script and add a session using your phone number.
-
Retrieve Data:
- Run the script to collect
query_idfrom URLs using the Telegram bot.
- Run the script to collect
If you encounter any issues or bugs, please open an issue or submit a Pull Request.
This project is licensed under the MIT License.