How to Get Telegram API ID & API Hash
meta_server1️⃣ Go to Telegram Official Website
Open this link in your browser:
👉 https://my.telegram.org/auth
2️⃣ Login With Your Phone Number
- Enter your Telegram phone number
- You will get a login code in Telegram
- Enter that code on the website
3️⃣ Create a New Application
After logging in:
✔ Click “API Development Tools”
✔ Click “Create new application”
4️⃣ Fill the Required Details
You will see a form:
- App title → anything (ex: ziddiserver)
- Short name → anything (ex: ziddi)
- Platform → Desktop / Web
- Description → optional
Then click Create
5️⃣ Get Your API ID & API Hash
After creating the app, you will see:
- API ID → like
1234567 - API HASH → long string like
af98d7c9e3.....
Copy both and put inside your main.py line 16 & 17:
api_id = 1234567 api_hash = "your_api_hash_here"
⚠️ Important
- Keep your API hash private
- Do NOT share it with anyone
- Anyone having your API hash can login to your Telegram session