Documentation ¶
Index ¶
- Constants
- func GetRemoteHost(remoteJID string) string
- func GetRemoteIdentifier(remoteJID string) string
- func GetRemoteJID(msg whatsapp.TextMessage) string
- func GetSenderJID(msg whatsapp.TextMessage) string
- func GetSenderNumber(msg whatsapp.TextMessage) string
- func Reply(text string, wac *whatsapp.Conn, msg whatsapp.TextMessage) error
- func ReplyImg(img io.Reader, wac *whatsapp.Conn, msg whatsapp.TextMessage) error
- func Send(text string, wac *whatsapp.Conn, msg whatsapp.TextMessage) error
- func SendTo(remoteJId, text string, wac *whatsapp.Conn) error
- func ValidateRemoteJID(remoteJID string) bool
Constants ¶
View Source
const ( // PrivateMessage received private message identifier PrivateMessage = "s.whatsapp.net" // GroupMessage received group message identifier GroupMessage = "g.us" // BroadcastMessage received broadcasts message identifier BroadcastMessage = "broadcast" // ContactMessage received contact private message identifier ContactMessage = "c.us" )
Variables ¶
This section is empty.
Functions ¶
func GetRemoteHost ¶
GetRemoteHost get the message host ex 629731239383
func GetRemoteIdentifier ¶
GetRemoteIdentifier get the message identifier ex: group message, private message...
func GetSenderJID ¶
func GetSenderJID(msg whatsapp.TextMessage) string
GetSenderJID is used to get the JId
func GetSenderNumber ¶
func GetSenderNumber(msg whatsapp.TextMessage) string
GetSenderNumber get sender info based on messsage
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.