Documentation
¶
Index ¶
- Constants
- Variables
- func GetLiveLoc(Message *waProto.Message) (lat float64, long float64)
- func RunWA(handler whatsmeow.EventHandler) (waclient *whatsmeow.Client)
- func SendButtonMessage(btnmsg ButtonsMessage, toJID types.JID, whatsapp *whatsmeow.Client) (resp whatsmeow.SendResponse, err error)
- func SendDocumentMessage(plaintext []byte, filename string, caption string, toJID types.JID, ...) (resp whatsmeow.SendResponse, err error)
- func SendImageMessage(plaintext []byte, caption string, toJID types.JID, whatsapp *whatsmeow.Client) (resp whatsmeow.SendResponse, err error)
- func SendListMessage(lstmsg ListMessage, toJID types.JID, whatsapp *whatsmeow.Client) (resp whatsmeow.SendResponse, err error)
- func SendMessage(msg string, toJID types.JID, whatsapp *whatsmeow.Client) (resp whatsmeow.SendResponse, err error)
- type ButtonsMessage
- type Chat
- type IteungMessage
- type IteungRespon
- type ListMessage
- type MediaType
- type Notif
- type NotifButton
- type PhoneList
- type QRScan
- type Response
- type WaButton
- type WaButtonsMessage
- type WaListRow
- type WaListSection
Constants ¶
View Source
const ( MediaTypeImage = MediaType(iota) MediaTypeVideo MediaTypeAudio MediaTypeDocument )
Variables ¶
View Source
var ( AppInfo = map[MediaType]string{ MediaTypeImage: "WhatsApp Image Keys", MediaTypeVideo: "WhatsApp Video Keys", MediaTypeAudio: "WhatsApp Audio Keys", MediaTypeDocument: "WhatsApp Document Keys", } )
Functions ¶
func RunWA ¶ added in v0.0.18
func RunWA(handler whatsmeow.EventHandler) (waclient *whatsmeow.Client)
func SendButtonMessage ¶
func SendButtonMessage(btnmsg ButtonsMessage, toJID types.JID, whatsapp *whatsmeow.Client) (resp whatsmeow.SendResponse, err error)
func SendDocumentMessage ¶ added in v0.0.14
func SendImageMessage ¶ added in v0.0.28
func SendListMessage ¶
func SendListMessage(lstmsg ListMessage, toJID types.JID, whatsapp *whatsmeow.Client) (resp whatsmeow.SendResponse, err error)
func SendMessage ¶
Types ¶
type ButtonsMessage ¶
type ButtonsMessage struct { Message WaButtonsMessage `json:"message,omitempty"` Buttons []WaButton `json:"buttons,omitempty"` }
type IteungMessage ¶
type IteungMessage struct { Phone_number string `json:"phone_number"` Group_name string `json:"group_name"` Alias_name string `json:"alias_name"` Messages string `json:"messages"` Is_group string `json:"is_group"` Filename string `json:"filename"` Filedata string `json:"filedata"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` Api_key string `json:"api_key"` }
type IteungRespon ¶
type IteungRespon struct {
Message string `json:"message"`
}
type ListMessage ¶
type ListMessage struct { Title string Description string ButtonText string Sections []WaListSection }
type NotifButton ¶
type NotifButton struct { User string `json:"user"` Server string `json:"server"` Message ButtonsMessage `json:"button_messages"` }
type WaButtonsMessage ¶
type WaListSection ¶
Click to show internal directories.
Click to hide internal directories.