- Go to the web version of Telegram
- Login
- Press 12 to switch to open DevTool
- Select which device emulate
1
- Go to the chat where you can launch app from referral link
- Click referral link
2
- After that app window should pop up
- Click on InspectTool
1
- Point it on app window area
2
- In
Elements
tab search for <iframe> tag3
- Expand it and change WebAppPlatform=web to WebAppPlatform=android | ios (which emulating device your were selected)
- Copy that URL and paste it adress line, Press Enter
- App should be launched in the Browser
- Select
Fetch/XHR
- Press F5
- Look for
login/
-> Headers -> CopyUser-Agent
- Payload -> Copy
init_data
andreferrer
- Response -> Copy
access token
- Look for
tap/
-> Payload -> Copytelegram_id
Note
if "referrer": null
paste your telegram_id
insted of null
.
- Paste all this data to
session_example.json
insessions/
folder and rename it - Repeat all this steps for adding other accounts
Now we are done.