This is a modified firefox multi account container extension for whatsapp and telegram so that it can run scripts automation like send message broadcast to group or user.
Sometimes when we creating a WhatsApp or Telegram bot, we often don't see the website interface. In this extension, we can run the bot script directly without any problems.
Libraries used:
- WhatsApp bot script uses a modified WWebJS library
- Telegram client bot script does not use any libraries, using the default module from https://web.telegram.org/k/
IMPORTANT: Telegram client bot only works on the URL https://web.telegram.org/k/
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Make sure you have firefox browser to run the extension
- Clone the repo
git clone https://github.com/radityaseptian/walagraf.git
- Install NPM packages
npm install
- Load Extension Firefox
go to "about:debugging#/runtime/this-firefox" click "Load Temporary Add-on" button choose location of file "manifest.json" in this project
- Use Container Extension
click extension Manage Containers in your firefox
click "Manage Containers" to Add or Remove container websiteTo modify the code you don't need to know all the project structure and what the code is for, just focus on the /src/lib/* and /src/js/background/messageHandler.js files, in the example in my code I show how to send a message every 10 minutes to a random group and post log result to local server, you can change it according to what you want.
When modifying code from /src/lib/* you only need to refresh the browser tab, unlike when modifying code from /src/js/* you need to restart the extension in the about:debugging#/runtime/this-firefox settings and click the "Reload" button.
Email: radityaseptian1551@gmail.com