ckptw

Create powerful WhatsApp bots easily.

MIT License

Downloads
422
Stars
34
Committers
5
ckptw - v4.3.6 Latest Release

Published by JastinXyz about 2 months ago

changes

ckptw - v4.3.4

Published by JastinXyz 2 months ago

changes

  • bump @whiskeysockets/baileys to v6.7.7
  • add WAVersion options in client constructor.
ckptw - v4.3.3

Published by JastinXyz 2 months ago

changes

  • add ctx.prepareWAMessageMedia.
  • add Carousel Builder.
  • add setURL method in Button Builder (fixes cta_url button not working properly).
ckptw - v4.3.0

Published by JastinXyz 2 months ago

changes

  • add ctx.quoted
  • add ctx.getContentType(content: WAProto.IMessage | undefined)
  • add ctx.downloadContentFromMessage(downloadable: DownloadableMessage, type: MediaType, opts?: MediaDownloadOptions)
  • add ctx._self.proto (Baileys proto)
  • Button Builder re-implementation (see #button)
  • Sections Builder re-implementation (see #sections)
  • add ctx.sendInteractiveMessage(jid: string, content: IInteractiveMessageContent, options: MessageGenerationOptionsFromContent | {} = {})
  • add ctx.replyInteractiveMessage(content: IInteractiveMessageContent, options: MessageGenerationOptionsFromContent | {} = {})
ckptw - v4.2.1

Published by JastinXyz 3 months ago

changes

  • fixing some typo in readme
ckptw - v4.2.0

Published by JastinXyz 4 months ago

changes

  • bump @whiskeysockets/baileys to v6.7.5.
  • fix fetchBio causing errors (#10).

new

  • add ctx.block(jid?: string) and ctx.unblock(jid?: string).
  • add ctx.decodedId
  • add decodedJid to ctx.sender property.
  • add Call events.
  • add bot.groups().
  • add lots of group stuff
    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()
    
ckptw - v4.1.1

Published by JastinXyz 5 months ago

Changes

  • fix message not getting updated when editing a message (#9)
ckptw - v4.1.0

Published by JastinXyz 6 months ago

Changes

  • Add: Pairing Code Method (Example code: here)
  • Add: selfReply, usePairingCode & phoneNumber options in client constructor.
  • Remove name options in client constructor.
  • Events & MessageType constant now can be imported from @mengkodingan/ckptw instead of @mengkodingan/ckptw/lib/Constant.
ckptw -

Published by JastinXyz 9 months ago

v4.0.5

  • types improvisation
  • ctx.getDevice()
  • ctx.isGroup()
ckptw - v4.0.0

Published by JastinXyz 10 months ago

Additions

Deprecated

  • Button
  • Sections
  • Template Buttons
ckptw - v3.0.7

Published by JastinXyz 11 months ago

Fix

  • error when using regex as prefix and message has empty prefix
ckptw - v3.0.6

Published by JastinXyz 11 months ago

Changes

  • can use regex for the bot prefix.
ckptw - v3.0.5

Published by JastinXyz 12 months ago

Core

  • bump @whiskeysockets/baileys package version to 6.5.0
ckptw - v3.0.1

Published by JastinXyz about 1 year ago

Changes

  • bot.hears function can accept array & regex as first parameter.
ckptw - v3.0.0

Published by JastinXyz over 1 year ago

Core

  • Switch core library from @adiwajshing/baileys to @whiskeysockets/[email protected].
  • Rename bot.whats (core object) to bot.core.
  • Rename dist directory to lib (constant will be affected).

Changes

  • new style on bot.command use (see #command-options).
  • ctx.reply can also accept only a string as a parameter with the text to be sent.
  • adding context param to second parameter in message upsert event.

Added

  • 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).