Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I listen for a DM and respond? #1579

Closed
3 tasks done
willuhmjs opened this issue Feb 25, 2022 · 1 comment
Closed
3 tasks done

How do I listen for a DM and respond? #1579

willuhmjs opened this issue Feb 25, 2022 · 1 comment
Labels

Comments

@willuhmjs
Copy link

General Question

Read the Notes and fill out the form.
Switch to Preview for reading.

Form

Put an [x] if you meet the condition, else leave [ ].

Question

A specific question, so it's understandable to anyone.
You may add pictures.

YOUR QUESTION HERE
How do I listen for a DM and respond? The docs are not very easy to navigate for new users.

Code

A meaningful section of your code (else delete this). If you are using TypeScript replace js with typescript.

const { IgApiClient } = require("instagram-private-api");
const ig = new IgApiClient();

const { username, password } = process.env;
console.log(username, password);

;(async (file) => {
  ig.state.generateDevice(username);
  await ig.account.login(username, password);
  /* What do I do here? */
})();
@willuhmjs willuhmjs added question unconfirmed This issue hasn't been read/confirmed/accepted by an admin labels Feb 25, 2022
@Nerixyz
Copy link
Collaborator

Nerixyz commented Feb 25, 2022

The reason you didn't find something is because it's not part of this library (this library is only for the HTTP api). I made a library to interface with the realtime (the one you want) and fbns "api" called instagram_mqtt. As far as updates to the library: It's updated to compile but there is no guarantee of it working all the time (same as this library; see the readme).

For more info check #845

@Nerixyz Nerixyz closed this as completed Feb 25, 2022
@Nerixyz Nerixyz removed the unconfirmed This issue hasn't been read/confirmed/accepted by an admin label Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants