Versions in this module Expand all Collapse all v1 v1.0.3 Aug 3, 2023 Changes in this version + type Command struct + Aliases []string + Cache bool + Category string + Description string + GroupOnly bool + HideFromHelp bool + Middleware MiddlewareFunc + Name string + OnlyAdminGroup bool + OnlyIfBotAdmin bool + PrivateOnly bool + RunFunc RunFunc + func (c *Command) Validate() + type MiddlewareFunc func(c *RunFuncContext) bool + type QuestionState struct + ActiveQuestion string + EmojiReact string + Questions []*Questions + ResultChan chan bool + RunFuncCtx *RunFuncContext + Separator string + WithEmojiReact bool + func NewUserQuestion(ctx *RunFuncContext) *QuestionState + func (state *QuestionState) CaptureMediaQuestion(question string, answer **waProto.Message) *QuestionState + func (state *QuestionState) CaptureQuestion(question string, answer **waProto.Message) *QuestionState + func (state *QuestionState) Exec() + func (state *QuestionState) ExecWithParser() + func (state *QuestionState) NoAskCaptureMediaQuestion(answer **waProto.Message) *QuestionState + func (state *QuestionState) NoAskCaptureQuestion(answer **waProto.Message) *QuestionState + func (state *QuestionState) SetNoAskQuestions(answer any) *QuestionState + func (state *QuestionState) SetNoAskReplyQuestion(answer any) *QuestionState + func (state *QuestionState) SetParserSeparator(separator string) *QuestionState + func (state *QuestionState) SetQuestion(question string, answer any) *QuestionState + func (state *QuestionState) SetReplyQuestion(question string, answer any) *QuestionState + func (state *QuestionState) WithEmoji(emoji string) *QuestionState + func (state *QuestionState) WithLikeEmoji() *QuestionState + func (state *QuestionState) WithOkEmoji() *QuestionState + func (state *QuestionState) WithTimeEmoji() *QuestionState + type Questions struct + Answer any + Capture bool + CaptureMedia bool + HasReplied bool + Index int + Question string + Reply bool + func (q *Questions) GetAnswer() string + func (q *Questions) SetAnswer(answer any) + type RunFunc func(c *RunFuncContext) *waProto.Message + type RunFuncContext struct + Arguments []string + Client *whatsmeow.Client + ClientJID *waTypes.JID + Ctx *skipmap.StringMap[types.RoxyContext] + CurrentCommand *Command + FromMe bool + Locals *skipmap.StringMap[string] + Message *waProto.Message + MessageEvent *events.Message + MessageInfo *waTypes.MessageInfo + Number string + Options *options.Options + ParsedMsg string + Prefix string + QuestionChan chan *QuestionState + WaLog waLog.Logger + func (runFunc *RunFuncContext) ByteToMessage(value []byte, withReply bool, caption string) *waProto.Message + func (runFunc *RunFuncContext) DelLocals(key string) + func (runFunc *RunFuncContext) Download(quoted bool) ([]byte, error) + func (runFunc *RunFuncContext) DownloadMessage(message *waProto.Message, quoted bool) ([]byte, error) + func (runFunc *RunFuncContext) DownloadMessageToFile(message *waProto.Message, quoted bool, fileName string) (*os.File, error) + func (runFunc *RunFuncContext) DownloadToFile(quoted bool, fileName string) (*os.File, error) + func (runFunc *RunFuncContext) EditMessageText(to string) error + func (runFunc *RunFuncContext) FindGroupByJid(groupJid waTypes.JID) (group *waTypes.GroupInfo, err error) + func (runFunc *RunFuncContext) FindMessageByID(jid waTypes.JID, id string) *events.Message + func (runFunc *RunFuncContext) GenerateReplyMessage(obj any) *waProto.Message + func (runFunc *RunFuncContext) GetAllChats() []*events.Message + func (runFunc *RunFuncContext) GetAllGroups() (group []*waTypes.GroupInfo, err error) + func (runFunc *RunFuncContext) GetChatInJID(jid waTypes.JID) []*events.Message + func (runFunc *RunFuncContext) GetClient() *whatsmeow.Client + func (runFunc *RunFuncContext) GetClientJID() *waTypes.JID + func (runFunc *RunFuncContext) GetCommand() *Command + func (runFunc *RunFuncContext) GetDownloadable(quoted bool) *waProto.Message + func (runFunc *RunFuncContext) GetDownloadableMessage(message *waProto.Message, quoted bool) *waProto.Message + func (runFunc *RunFuncContext) GetGroupInfo(jid any) (*waTypes.GroupInfo, error) + func (runFunc *RunFuncContext) GetGroupInfoFromInviteLink(link string) (*waTypes.GroupInfo, error) + func (runFunc *RunFuncContext) GetGroupInviteLink(jid any, reset bool) (string, error) + func (runFunc *RunFuncContext) GetJoinedGroups() ([]*waTypes.GroupInfo, error) + func (runFunc *RunFuncContext) GetLocals(key string) (string, bool) + func (runFunc *RunFuncContext) GetMessage() *waProto.Message + func (runFunc *RunFuncContext) GetMessageEvent() *events.Message + func (runFunc *RunFuncContext) GetMessageInfo() *waTypes.MessageInfo + func (runFunc *RunFuncContext) GetOptions() *options.Options + func (runFunc *RunFuncContext) GetProfilePicture(jid any) (string, error) + func (runFunc *RunFuncContext) GetStatusMessages() []*events.Message + func (runFunc *RunFuncContext) GetUser(jid any) (result waTypes.UserInfo, err error) + func (runFunc *RunFuncContext) IsClientGroupAdmin() (bool, error) + func (runFunc *RunFuncContext) IsGroupAdmin(jid any) (bool, error) + func (runFunc *RunFuncContext) JoinInviteLink(link string) error + func (runFunc *RunFuncContext) RangeLocals(fun func(key string, value string) bool) + func (runFunc *RunFuncContext) RevokeMessage(jid waTypes.JID, messageId waTypes.MessageID) + func (runFunc *RunFuncContext) SendEmoji(emoji string) + func (runFunc *RunFuncContext) SendMessage(obj any) + func (runFunc *RunFuncContext) SendReadPresence() + func (runFunc *RunFuncContext) SendReplyMessage(obj any) + func (runFunc *RunFuncContext) SendTypingPresence(duration time.Duration) + func (runFunc *RunFuncContext) SetGroupAnnounce(announce bool) error + func (runFunc *RunFuncContext) SetGroupLocked(locked bool) error + func (runFunc *RunFuncContext) SetGroupName(name string) error + func (runFunc *RunFuncContext) SetGroupPhoto(data []byte) error + func (runFunc *RunFuncContext) SetLocals(key string, value string) + func (runFunc *RunFuncContext) SetLocalsWithTTL(key string, value string, ttl time.Duration) + func (runFunc *RunFuncContext) SetUserStatus(status string) error + func (runFunc *RunFuncContext) UpdateClientProfilePicture(data []byte) error + func (runFunc *RunFuncContext) UpdateProfilePicture(jid any, data []byte) error + func (runFunc *RunFuncContext) UploadAudioFromUrl(url string) (*waProto.AudioMessage, error) + func (runFunc *RunFuncContext) UploadAudioMessageFromBytes(bytes []byte) (*waProto.AudioMessage, error) + func (runFunc *RunFuncContext) UploadAudioMessageFromPath(path string) (*waProto.AudioMessage, error) + func (runFunc *RunFuncContext) UploadDocumentFromUrl(url, title, filename string) (*waProto.DocumentMessage, error) + func (runFunc *RunFuncContext) UploadDocumentMessageFromBytes(bytes []byte, title, filename string) (*waProto.DocumentMessage, error) + func (runFunc *RunFuncContext) UploadDocumentMessageFromPath(path, title string) (*waProto.DocumentMessage, error) + func (runFunc *RunFuncContext) UploadImageFromUrl(url, caption string) (*waProto.ImageMessage, error) + func (runFunc *RunFuncContext) UploadImageMessageFromBytes(bytes []byte, caption string) (*waProto.ImageMessage, error) + func (runFunc *RunFuncContext) UploadImageMessageFromPath(path, caption string) (*waProto.ImageMessage, error) + func (runFunc *RunFuncContext) UploadStickerFromUrl(url string) (*waProto.StickerMessage, error) + func (runFunc *RunFuncContext) UploadStickerMessageFromBytes(bytes []byte) (*waProto.StickerMessage, error) + func (runFunc *RunFuncContext) UploadStickerMessageFromPath(path string) (*waProto.StickerMessage, error) + func (runFunc *RunFuncContext) UploadVideoFromUrl(url, caption string) (*waProto.VideoMessage, error) + func (runFunc *RunFuncContext) UploadVideoMessageFromBytes(bytes []byte, caption string) (*waProto.VideoMessage, error) + func (runFunc *RunFuncContext) UploadVideoMessageFromPath(path, caption string) (*waProto.VideoMessage, error)