Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { ID string From string Text string Time time.Time Source whatsapp.TextMessage }
Message content body whatsapp text message
type WhatsappClient ¶
type WhatsappClient struct { MobileNumber string // contains filtered or unexported fields }
WhatsappClient connect
func (*WhatsappClient) GetConnection ¶
func (wp *WhatsappClient) GetConnection() *whatsapp.Conn
GetConnection return whatsapp connection
func (*WhatsappClient) Listen ¶
func (wp *WhatsappClient) Listen(f messageListener)
Listen text messages
func (*WhatsappClient) SendImage ¶
func (wp *WhatsappClient) SendImage(to, imageFile, extension, caption string)
func (*WhatsappClient) SendText ¶
func (wp *WhatsappClient) SendText(to string, text string)
SendText send text message
Click to show internal directories.
Click to hide internal directories.