autoMention
option in client (see #auto-mention)ctx.msg.media.toBuffer()
(see #downloading-media)ctx.msg.media.toStream()
(see #downloading-media)ctx.quoted.media.toBuffer()
(see #downloading-media)ctx.quoted.media.toStream()
(see #downloading-media)Published by JastinXyz 2 months ago
@whiskeysockets/baileys
to v6.7.7WAVersion
options in client constructor.Published by JastinXyz 2 months ago
ctx.prepareWAMessageMedia
.setURL
method in Button Builder (fixes cta_url
button not working properly).Published by JastinXyz 2 months ago
ctx.quoted
ctx.getContentType(content: WAProto.IMessage | undefined)
ctx.downloadContentFromMessage(downloadable: DownloadableMessage, type: MediaType, opts?: MediaDownloadOptions)
ctx._self.proto
(Baileys proto)ctx.sendInteractiveMessage(jid: string, content: IInteractiveMessageContent, options: MessageGenerationOptionsFromContent | {} = {})
ctx.replyInteractiveMessage(content: IInteractiveMessageContent, options: MessageGenerationOptionsFromContent | {} = {})
Published by JastinXyz 3 months ago
Published by JastinXyz 4 months ago
@whiskeysockets/baileys
to v6.7.5
.fetchBio
causing errors (#10).ctx.block(jid?: string)
and ctx.unblock(jid?: string)
.ctx.decodedId
decodedJid
to ctx.sender
property.Call
events.bot.groups()
.ctx.groups.create(subject: string, members: string[]);
ctx.groups.inviteCodeInfo(code: string);
ctx.groups.acceptInvite(code: string);
ctx.groups.acceptInviteV4(key: string | proto.IMessageKey, inviteMessage: proto.Message.IGroupInviteMessage);
ctx.group(jid?: string); // jid is optional
ctx.group().members();
ctx.group().inviteCode();
ctx.group().revokeInviteCode();
ctx.group().joinApproval(mode: "on" | "off");
ctx.group().leave();
ctx.group().membersCanAddMemberMode(mode: "on" | "off");
ctx.group().metadata();
ctx.group().toggleEphemeral(expiration: number);
ctx.group().updateDescription(description: number);
ctx.group().updateSubject(subject: number);
ctx.group().membersUpdate(members: string[], action: ParticipantAction);
ctx.group().kick(members: string[]);
ctx.group().add(members: string[]);
ctx.group().promote(members: string[]);
ctx.group().demote(members: string[]);
ctx.group().pendingMembers();
ctx.group().pendingMembersUpdate(members: string[], action: 'reject' | 'approve');
ctx.group().approvePendingMembers(members: string[]);
ctx.group().rejectPendingMembers(members: string[]);
ctx.group().updateSetting(setting: 'announcement' | 'not_announcement' | 'locked' | 'unlocked')
ctx.group().open()
ctx.group().close()
ctx.group().lock()
ctx.group().unlock()
Published by JastinXyz 5 months ago
Published by JastinXyz 6 months ago
selfReply
, usePairingCode
& phoneNumber
options in client constructor.name
options in client constructor.Events
& MessageType
constant now can be imported from @mengkodingan/ckptw
instead of @mengkodingan/ckptw/lib/Constant
.Published by JastinXyz 10 months ago
ctx.simulateRecording()
Events.Poll
& Events.PollVote
)bot.bio("Hi there!")
bot.fetchBio("[email protected]")
ctx.getMentioned()
(see #get-mentions)Events.Reactions
)Published by JastinXyz 11 months ago
Published by JastinXyz 11 months ago
Published by JastinXyz about 1 year ago
bot.hears
function can accept array & regex as first parameter.Published by JastinXyz over 1 year ago
@adiwajshing/baileys
to @whiskeysockets/[email protected]
.bot.whats
(core object) to bot.core
.dist
directory to lib
(constant will be affected).bot.command
use (see #command-options).ctx.reply
can also accept only a string as a parameter with the text to be sent.bot.hears
- Same as bot.command
but without the prefix. You can also use this function to listen to any type of message (see #misc).VCardBuilder
- Makes it easier when you want to send a contact with a VCard (see #contact).TemplateButtonsBuilder
- Like a normal button but there is a kind of "attachment" (see #template-buttons).ctx.getMessageType()
- Gets what type of message the message was received.ctx.read()
- Read the message.ctx.simulateTyping()
- simulate typing state...qrTimeout
& markOnlineOnConnect
in Client Configuration (see #client-configuration).MessageType
constant.ctx.getMediaMessage()
- Downloading media message purpose (see #downloading-media).