Reverse engineered prompt

GitHub

Build me a small Node.js library for making simple Facebook Messenger chat bots, basically in the style of the older unofficial chat API. I want to be able to log in with either an email and password or a saved app state file, then get back an api object that can listen for messages and send replies to a thread. Include the common simple use case where the bot just repeats whatever someone says, plus a way to save the current session state to a json file after login.

Please keep the API easy to use for beginners, with a basic example and a short README in clear English, and if possible support both English and Vietnamese text without doing anything fancy. Add a small test or demo file so I can see it working quickly. Keep compatibility with Node 14.17.0 in mind.

Also add a clear warning that this is unofficial, may be risky for Facebook accounts, and is not something to rely on for long term production use. Look up the older docs online if you need the expected API shape.

Have a live product UI? Try website reverse