- Python 3.7+
- A valid
api_id
andapi_hash
from my.telegram.org
-
Clone the Repository
git clone https://github.com/ululazmi18/get_query_id_telethon.git cd get_query_id_telethon
-
Install Required Libraries
pip install telethon
-
Configure API Credentials
- In the root folder of the project, you will find a
config.json
file created by the script. Open this file and fill in yourapi_id
andapi_hash
. - Example:
{ "api_id": 1234567, "api_hash": "your_api_hash_here" }
- In the root folder of the project, you will find a
-
Run the Script
- Start the program by running:
python main.py
- Start the program by running: