/gowp-scheduler

Primary LanguageGoApache License 2.0Apache-2.0

Make Your Whatsapp Messages Schedule

GitHub last commit GitHub issues GitHub pull requests

About

Package has two functional actions.

  • Instant
  • Schedule

Usage

The whatsapp qr code will be on your terminal. So easily can scan and then start use

Instant Mode

go run . -type instant -contactsPath ./service/test-data/contacts.csv

The command runs the package with instant mode and next step is typing message.

Enter Message: Test message from cli
Test message from cli
Are You Sure? [y/N] :

Your csv file should be like mentioned below. Actually package doesn't use name field but sometimes saves us from typo or mismatch problems

murat,90539xxxxxxx
turan,90539xxxxxxx

Schedule Mode

go run . -type schedule -ordersPath ./service/test-data/orders.csv

Your csv file should be like mentioned below. The timer set every 10 seconds.

90539,hello from csv,2022-10-13T12:12:00Z
90539,hello from go,2022-10-13T12:12:00Z