Documentation
¶
Index ¶
- func Login(c *config.Cluster, pwd string, np string) string
- func SendMessage(clus *config.Cluster, msg *map[string]interface{}) ([]byte, error)
- func UploadMedia(clus *config.Cluster, file *types.Media) ([]byte, error)
- func VerifyContact(clus *config.Cluster, to int, blocking bool, forceCheck bool) (*types.ContactResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
Login performs login into the whatsapp account and generates a long term auth token, if new password is provided the existing will be replaced by the new password
func SendMessage ¶
SendMessage is a helper function to make a http call the whatsapp infra
func UploadMedia ¶
UploadMedia provides a helper function to upload the file to whatsapp
func VerifyContact ¶
func VerifyContact(clus *config.Cluster, to int, blocking bool, forceCheck bool) (*types.ContactResponse, error)
VerifyContact is a helper function to call the verify http request to verify the end user number if the user is not registered with whatsapp it will result in an error and exit with status code 1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.