Documentation ¶
Index ¶
- Constants
- func GetAudioMessage(msg *events.Message) (audioMsg *waProto.VideoMessage, err error)
- func GetCmdArgs(m *events.Message) []string
- func GetGreeting(sender string) string
- func GetImageMessage(msg *events.Message) (imageMsg *waProto.ImageMessage, err error)
- func GetMessage(msg *events.Message, msgType MessageType) (message interface{}, err error)
- func GetStickerMessage(msg *events.Message) (stickerMsg *waProto.StickerMessage, err error)
- func GetTextFromMsg(m *events.Message) string
- func GetVideoMessage(msg *events.Message) (videoMsg *waProto.VideoMessage, err error)
- func IsAdmin(chat types.JID, sender types.JID) bool
- func IsOwner(sender types.JID) bool
- func Reply(m *events.Message, text string)
- func ReplyWithMentions(m *events.Message, text string, mentions []string)
- func SendReact(m *events.Message, reaction string) whatsmeow.SendResponse
- func SendText(from types.JID, text string)
- func SendTextWithMentions(from types.JID, text string, mentions []string)
- func WebpWriteExifData(inputData []byte, updateId int64) ([]byte, error)
- type MessageType
Constants ¶
View Source
const ( Image = "image" Video = "video" Audio = "audio" Sticker = "sticker" )
Variables ¶
This section is empty.
Functions ¶
func GetAudioMessage ¶
func GetAudioMessage(msg *events.Message) (audioMsg *waProto.VideoMessage, err error)
func GetCmdArgs ¶
func GetGreeting ¶
func GetImageMessage ¶
func GetImageMessage(msg *events.Message) (imageMsg *waProto.ImageMessage, err error)
func GetMessage ¶
func GetMessage(msg *events.Message, msgType MessageType) (message interface{}, err error)
func GetStickerMessage ¶
func GetStickerMessage(msg *events.Message) (stickerMsg *waProto.StickerMessage, err error)
func GetTextFromMsg ¶
func GetVideoMessage ¶
func GetVideoMessage(msg *events.Message) (videoMsg *waProto.VideoMessage, err error)
func SendTextWithMentions ¶
Types ¶
type MessageType ¶
type MessageType string
const ( ImageMessageType MessageType = "image" VideoMessageType MessageType = "video" AudioMessageType MessageType = "audio" StickerMessageType MessageType = "sticker" )
Click to show internal directories.
Click to hide internal directories.