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

DM pending requests event not emitted #48

Open
dcts opened this issue Feb 1, 2021 · 2 comments
Open

DM pending requests event not emitted #48

dcts opened this issue Feb 1, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@dcts
Copy link
Contributor

dcts commented Feb 1, 2021

Lately I noticed that the event pendingRequest no longer is emitted when an instagram user sends a message to the bot for the first time (and the bot does not follow that user). This is the event I would like to capture:
Bildschirmfoto vom 2021-02-01 15-58-33

Could it be that instagram changed the event name or did an update? Is there any way to test this?

Here's my code snippet: this does not work (nothing is printed to the console at all, so I assume the event is not being emitted somehow):

client.on('pendingRequest', (chat) => {
  console.log("👤 Incoming new DM request");
  try {
    chat.approve();
    console.log("✅ accepted");
  } catch(err) {
    console.log("❌ error: " + err.message);
  }
});

I have a log from 2020-12-08 where this feature was still working. Just leaving this info here, maybe its usefull to find the problem.

If you have hints where to look in the code and how to find out why it is not triggeren I'm happy to hear. Should I look into Nerixyz's repository or is the error in this repository? 🤔

@Androz2091
Copy link
Owner

Hello,
You can try to debug the handleFbns function, structures/Client.js line 306, to see if you're receiving the right payload

@azkadev
Copy link

azkadev commented Jun 5, 2021

same issu please developer fix this issue:( sory i bad english

@Androz2091 Androz2091 added the bug Something isn't working label Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants