-
Set
USE_QUERY_ID
in your .env file toTrue
-
Launch WEB Telegram with your browser (e.g. Chrome)
-
Click the F12 to open
Inspect tool
for you Chromium browser (e.g Brave, Chrome, Arc, Microsoft Edge, etc..) -
Launch the Rocky Rabbit app from your telegram web
-
Click on the
Console
tab in theInspect tool
-
Type
allow pasting
in theConsole
and press enter -
Copy and Paste
new URLSearchParams(document.querySelector('iframe').src.split('#')[1]).get('tgWebAppData')
in the console and press enter -
Copy the returned string in the
Console
after finishingStep 6
The string looks like: user=%7B%22id4345646456451%2C%22first_name%22%3A%dfgdfgdfg%22%2C%22last_name%22%3A%22%22%2C%22username%22%3A%dfghsgrdfgdfg%22%2C%22language_code%22%3A%22en%22%2C%22allows_write_to_pm%22%3Atrue%7D&chat_instance=-457567675675&chat_type=sender&auth_date=175657657&hash=66487465e9877w98rf7sdfsdjh48484343herfuh4y4rwseifs
- Paste it in the
queryIds.json
file. Example below:
{
"Account1": "user=%7B%22id4345646456451%2C%22first_name%22%3A%dfgdfgdfg%22%2C%22last_name%22%3A%22%22%2C%22username%22%3A%dfghsgrdfgdfg%22%2C%22language_code%22%3A%22en%22%2C%22allows_write_to_pm%22%3Atrue%7D&chat_instance=-457567675675&chat_type=sender&auth_date=175657657&hash=66487465e9877w98rf7sdfsdjh48484343herfuh4y4rwseifs"
}
- Now start the bot using
node index.js