You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do I need to prepare my account to work with insta.js?
I can't start the application
Error:
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
IgResponseError: POST /api/v1/accounts/msisdn_header_bootstrap/ - 401 Unauthorized; Please wait a few minutes before you try again.
at Request.handleResponseError (/home/runner/InstaChatBot/node_modules/instagram-private-api/dist/core/request.js:126:16)
at Request.send (/home/runner/InstaChatBot/node_modules/instagram-private-api/dist/core/request.js:54:28)
Code:
constInsta=require('@androz2091/insta.js');constclient=newInsta.Client();client.on('connected',()=>{console.log(`Logged in as ${client.user.username}`);});client.on('messageCreate',(message)=>{if(message.author.id===client.user.id)returnmessage.markSeen();if(message.content==='!ping'){message.reply('!pong');}});client.login(process.env.USERNAME,process.env.PASSWORD);
The text was updated successfully, but these errors were encountered:
Do I need to prepare my account to work with insta.js?
I can't start the application
Error:
Code:
The text was updated successfully, but these errors were encountered: