Versions in this module Expand all Collapse all v1 v1.2.3 Apr 19, 2025 v1.2.0 Dec 7, 2023 Changes in this version + func ReleaseCtx(c *Ctx) + type Ctx struct + func AcquireCtx() *Ctx + func NewCtx(locals *xsync.MapOf[string, string]) *Ctx + func (context *Ctx) AddMemberToGroup(jids []waTypes.JID) error + func (context *Ctx) Arguments() []string + func (context *Ctx) ByteToMessage(value []byte, withReply bool, caption string) *waProto.Message + func (context *Ctx) ChatJID() waTypes.JID + func (context *Ctx) Client() *whatsmeow.Client + func (context *Ctx) ClientJID() waTypes.JID + func (context *Ctx) DelLocals(key string) + func (context *Ctx) DemoteMemberInGroup(jids []waTypes.JID) error + func (context *Ctx) Download(quoted bool) ([]byte, error) + func (context *Ctx) DownloadMessage(message *waProto.Message, quoted bool) ([]byte, error) + func (context *Ctx) DownloadMessageToFile(message *waProto.Message, quoted bool, fileName string) (*os.File, error) + func (context *Ctx) DownloadToFile(quoted bool, fileName string) (*os.File, error) + func (context *Ctx) EditMessageText(to string) error + func (context *Ctx) FindGroupByJid(groupJid waTypes.JID) (group *waTypes.GroupInfo, err error) + func (context *Ctx) FindMessageByID(jid waTypes.JID, id string) *events.Message + func (context *Ctx) FromMe() bool + func (context *Ctx) GenerateReplyMessage(obj any) *waProto.Message + func (context *Ctx) GetAllChats() []*events.Message + func (context *Ctx) GetAllGroups() (group []*waTypes.GroupInfo, err error) + func (context *Ctx) GetChatInJID(jid waTypes.JID) []*events.Message + func (context *Ctx) GetDownloadable(quoted bool) *waProto.Message + func (context *Ctx) GetDownloadableMessage(message *waProto.Message, quoted bool) *waProto.Message + func (context *Ctx) GetGroupInfo(jid any) (*waTypes.GroupInfo, error) + func (context *Ctx) GetGroupInfoFromInviteLink(link string) (*waTypes.GroupInfo, error) + func (context *Ctx) GetGroupInviteLink(jid any) (string, error) + func (context *Ctx) GetGroupProfilePicture(jid any) (string, error) + func (context *Ctx) GetJoinedGroups() ([]*waTypes.GroupInfo, error) + func (context *Ctx) GetLocals(key string) (string, bool) + func (context *Ctx) GetStatusMessages() []*events.Message + func (context *Ctx) GetUserInfo(jid any) (result waTypes.UserInfo, err error) + func (context *Ctx) IsClientGroupAdmin() (bool, error) + func (context *Ctx) IsGroupAdmin(jid any) (bool, error) + func (context *Ctx) JoinGroupInviteLink(link string) error + func (context *Ctx) LeaveFromGroup(jid waTypes.JID) error + func (context *Ctx) LeaveFromThisGroup() error + func (context *Ctx) Logger() waLog.Logger + func (context *Ctx) Message() *waProto.Message + func (context *Ctx) MessageEvent() *events.Message + func (context *Ctx) MessageInfo() waTypes.MessageInfo + func (context *Ctx) Methods() types.ClientMethods + func (context *Ctx) NewPollingState() *PollingState + func (context *Ctx) NewUserQuestion() *QuestionState + func (context *Ctx) Number() string + func (context *Ctx) Options() *options.Options + func (context *Ctx) ParsedMsg() string + func (context *Ctx) Prefix() string + func (context *Ctx) PromoteMemberInGroup(jids []waTypes.JID) error + func (context *Ctx) RangeLocals(fun func(key string, value string) bool) + func (context *Ctx) RemoveMemberFromGroup(jids []waTypes.JID) error + func (context *Ctx) RevokeGroupInvite() (string, error) + func (context *Ctx) RevokeMessage(jid waTypes.JID, messageId waTypes.MessageID) + func (context *Ctx) SendEmoji(emoji string) + func (context *Ctx) SendMessage(obj any) + func (context *Ctx) SendReadPresence() + func (context *Ctx) SendReplyMessage(obj any) + func (context *Ctx) SendTypingPresence(duration time.Duration) + func (context *Ctx) SenderJID() waTypes.JID + func (context *Ctx) SetClient(client *whatsmeow.Client) + func (context *Ctx) SetClientJID(jid waTypes.JID) + func (context *Ctx) SetClientMethods(clientMethods types.ClientMethods) + func (context *Ctx) SetGroupAnnounce(announce bool) error + func (context *Ctx) SetGroupLocked(locked bool) error + func (context *Ctx) SetGroupName(name string) error + func (context *Ctx) SetGroupPhoto(data []byte) error + func (context *Ctx) SetLocals(key string, value string) + func (context *Ctx) SetLocalsWithTTL(key string, value string, ttl time.Duration) + func (context *Ctx) SetLogger(logger waLog.Logger) + func (context *Ctx) SetMessageEvent(evt *events.Message) + func (context *Ctx) SetOptions(options *options.Options) + func (context *Ctx) SetParsedMsg(parsedMsg string) + func (context *Ctx) SetPollingChan(pooling chan *PollingState) + func (context *Ctx) SetPrefix(prefix string) + func (context *Ctx) SetQuestionChan(question chan *QuestionState) + func (context *Ctx) SetUserStatus(status string) error + func (context *Ctx) UpdateClientProfilePicture(data []byte) error + func (context *Ctx) UpdateGroupProfilePicture(jid any, data []byte) error + func (context *Ctx) UploadAudioFromUrl(url string) (*waProto.AudioMessage, error) + func (context *Ctx) UploadAudioMessageFromBytes(bytes []byte) (*waProto.AudioMessage, error) + func (context *Ctx) UploadAudioMessageFromPath(path string) (*waProto.AudioMessage, error) + func (context *Ctx) UploadBytesMedia(bytes []byte, vars map[string]string) (any, error) + func (context *Ctx) UploadDocumentFromUrl(url, title, filename string) (*waProto.DocumentMessage, error) + func (context *Ctx) UploadDocumentMessageFromBytes(bytes []byte, title, filename string) (*waProto.DocumentMessage, error) + func (context *Ctx) UploadDocumentMessageFromPath(path, title string) (*waProto.DocumentMessage, error) + func (context *Ctx) UploadImageFromUrl(url, caption string) (*waProto.ImageMessage, error) + func (context *Ctx) UploadImageMessageFromBytes(bytes []byte, caption string) (*waProto.ImageMessage, error) + func (context *Ctx) UploadImageMessageFromPath(path, caption string) (*waProto.ImageMessage, error) + func (context *Ctx) UploadMediaFromUrl(url string, vars map[string]string) (any, error) + func (context *Ctx) UploadStickerFromUrl(url string) (*waProto.StickerMessage, error) + func (context *Ctx) UploadStickerMessageFromBytes(bytes []byte) (*waProto.StickerMessage, error) + func (context *Ctx) UploadStickerMessageFromPath(path string) (*waProto.StickerMessage, error) + func (context *Ctx) UploadVideoFromUrl(url, caption string) (*waProto.VideoMessage, error) + func (context *Ctx) UploadVideoMessageFromBytes(bytes []byte, caption string) (*waProto.VideoMessage, error) + func (context *Ctx) UploadVideoMessageFromPath(path, caption string) (*waProto.VideoMessage, error) + type MiddlewareFunc func(c *Ctx) bool + type PollingOptions struct + Hashed []byte + Options string + type PollingState struct + Ctx *Ctx + PollId string + PollName string + PollOptions []PollingOptions + PollSelectable int + PollWithRevoke bool + PollingResult []string + PollingTimeout *time.Duration + ResultChan chan bool + func NewPollingState(context *Ctx) *PollingState + func (p *PollingState) Exec() []string + func (p *PollingState) SetOnlyOnePool() *PollingState + func (p *PollingState) SetPollInformation(name string, options []string) *PollingState + func (p *PollingState) SetSelectableOption(count int) *PollingState + func (p *PollingState) SetTimeBasedType(timeOut time.Duration) *PollingState + func (p *PollingState) WithRevoke() *PollingState + type QuestionState struct + ActiveQuestion string + Ctx *Ctx + EmojiReact string + Questions []*Questions + ResultChan chan bool + Separator string + WithEmojiReact bool + func NewUserQuestion(context *Ctx) *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 *Ctx) *waProto.Message