Skip to content

Mqtt client 'offline' callback and fix small issue in getMessage method#11

Open
kenny59 wants to merge 2 commits intontkhang03:masterfrom
kenny59:feature/mqtt
Open

Mqtt client 'offline' callback and fix small issue in getMessage method#11
kenny59 wants to merge 2 commits intontkhang03:masterfrom
kenny59:feature/mqtt

Conversation

@kenny59
Copy link
Copy Markdown
Contributor

@kenny59 kenny59 commented Sep 2, 2023

My bot was not responding after (each day after 5-8 hours of running) a while and it turns out that I was getting 'offline' callback from mqtt client, which fb-chat-api is not subscribed to.
I could not replicate it by unplugging any cables or disconnecting from internet, so it is most likely something that comes from Facebook itself.
Bumping mqtt client was not neccessary in the end, but it should contain some under the hood fixes that should make it more reliable.

Also this contains a small fix that fixes getMessage when requesting a message that contains attachment.

@miruchigawa
Copy link
Copy Markdown

This is what I've been looking for all this time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants