Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initial_startup ¶
Initial_startup It checks if the html attribute existing only in the qr code check table exists. If it exists, it means that whatsapp is not authenticated, returning <nil> in your call.
Types ¶
type WhatsApp ¶
type WhatsApp struct { // Browser returns the driver components Browser driver.ChromeDriver // contains filtered or unexported fields }
WhatsApp controls the drivers needed to store the session
func (*WhatsApp) Authenticate ¶
func (w *WhatsApp) Authenticate()
Authenticate Initializes the driver by opening the whatsapp address with the variable control. After correctly scanning the QR code on the mobile device, authentication will be performed and messaging will be allowed.
In case there is a need to authenticate several numbers, the ideal is to execute these functions in a goroutine, because during the QR Code Scan time, a repeating for loop is executed, preventing the code from continuing until its end (when it is done the scan of the QR Code and the session is created).