https://github.com/raicg/whatsapp_api
Free API to use whatsapp web
https://github.com/raicg/whatsapp_api
begginers golang hacktoberfest whatsapp whatsapp-api whatsapp-web
Last synced: 10 months ago
JSON representation
Free API to use whatsapp web
- Host: GitHub
- URL: https://github.com/raicg/whatsapp_api
- Owner: raicg
- Created: 2019-11-01T15:34:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-19T18:04:58.000Z (about 6 years ago)
- Last Synced: 2025-03-19T23:44:39.338Z (10 months ago)
- Topics: begginers, golang, hacktoberfest, whatsapp, whatsapp-api, whatsapp-web
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---------------------------
# Setup
## Pre-requisites
* GoLang
## Need help to install golang?
try: https://github.com/canha/golang-tools-install-script
## Setup project
1. `$ go get github.com/Rhymen/go-whatsapp`
1. `$ go get github.com/Baozisoftware/qrcode-terminal-go`
1. `$ go get github.com/tushar2708/altcsv`
1. Then edit the variables in `config/config.go` with the correct path to your folders. (follow the instructions inside the file)
## Running
1. `$ go run main.go`
## Login
1. To login you just need to read the QR code using the whatsapp on your device, you will connect it through the whatsapp web function.
## Receiving Messages
1. To receive the messages you just need to configure the variables in `config/config.go`, as requested on the setup project section, so you will receive the messages in csv format and the attachments.
## Sending Messages
1. To send a message you just need to enter the text, "contact" or "group" and the phone number without + sign or group id without @g.us, like: `"text example" "contact" "5584998765432"` or `"text example" "group" "557392152628-1538763567"` on the terminal.