Based upon the mdtest tool previously part of whatsmeow.
mdtest was deleted from the whatsmeow project in commit 9bd3fa0cc1c1a56c4e1ea324883b876c2c008c84
This is a tool which connects to whatsapp using whatsmeow, and allows you to send most protocol messages from an interactive shell.
more commands:
- a
helpcommand - a
jsonaddcommand, which creates groups based on the specification in a json file. - a
addgroupcommand, which creates a group specified on the cmdline. jsonaddandaddgroupalso take care of inviting JIDS which fail the automatic add.checkuserprints some more info for each jid checked.subscribepresenceis a bit more verbose.- corrected some typo's
other features:
- all incoming images and videos are saved
- the filename for images and video's contain the current time.
- Clone the repository.
- Run
go buildinside this directory. - Run
./whatsappshellto start the program. Optionally, userlwrap ./whatsappshellto get a nicer prompt. Add-debugif you want to see the raw data being sent/received. - On the first run, scan the QR code. On future runs, the program will remember you (unless
whatsappshell.dbis deleted).
New messages will be automatically logged. To send a message, use send <jid> <message>
- The above extensions were added by Willem Hengeveld [email protected]
- The main body of whatsapptool/mdtest was written by the whatsmeow team.