Androz2091 / Androz2091/insta.js

DM pending requests event not emitted

Đang mở
#48 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
JavaScript
Star
142
Fork
41
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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](https://user-images.githubusercontent.com/44790691/106475886-bf31e900-64a6-11eb-8d85-7e193803aff8.png)

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):
```js
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](https://github.com/Nerixyz/instagram_mqtt) or is the error in this repository? 🤔

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.