Documentation ¶
Overview ¶
Package whatsrhyno is a package that can simplify usage of whatsmeow https://go.mau.fi/whatsmeow.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper for whatsmeow client with some additional features.
func NewClient ¶
NewClient initializes a new client. dbFile is the file path that will be used to store session and other data. whatsrhyno will use `sqlite3` as the sql dialect. loglevel is the log level of the underlying client. e.g "WARN", "INFO", "DEBUG", "ERROR"
func (*Client) Disconnect ¶
func (cli *Client) Disconnect()
Disconnect disconnects the client from whatsapp web websocket.
func (*Client) GetCommandPrefix ¶
GetCommandPrefix returns the command prefix.
func (*Client) RegisterEventHandler ¶
RegisterEventHandler registers a handler for events.
func (*Client) SetCommandPrefix ¶
SetCommandPrefix sets the command prefix.
Click to show internal directories.
Click to hide internal directories.