Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SenderLayer
    • webPack

Index

Constructors

constructor

  • new webPack(page: Page, browser: Browser, options: CreateOptions, ev: any): webPack

Properties

autoCloseInterval

autoCloseInterval: any

autoCloseRemain

autoCloseRemain: number = 0

browser

browser: Browser

ev

ev: any

options

options: CreateOptions

page

page: Page

startScanQrcode

startScanQrcode: boolean

urlCode

urlCode: string = ''

Methods

addChatWapi

  • addChatWapi(): Promise<void>

addParticipant

  • addParticipant(groupId: string, contacts: string | string[]): Promise<InterfaceScope>

asciiQr

  • asciiQr(code: string): Promise<string>

cancelAutoClose

  • cancelAutoClose(): void

checkNumber

  • checkNumber(number: string): Promise<checkNumber>

createGroup

  • createGroup(groupName: string, contacts: string | string[]): Promise<InterfaceScope>

decryptFile

  • decryptFile(message: any): Promise<Buffer>
  • Decrypts message file

    Parameters

    • message: any

      Message object

    Returns Promise<Buffer>

    Decrypted file buffer (null otherwise)

getAllContacts

  • getAllContacts(): Promise<contact>

getHost

  • getHost(): Promise<InterfaceHost>

initLitener

  • initLitener(): Promise<void>

initService

  • initService(): Promise<void>

qrCode

  • qrCode(): Promise<undefined | { base64Image: string; urlCode: null | string }>

qrCodeScan

  • qrCodeScan(): Promise<void>

screenshot

  • screenshot(): Promise<{ base64Image: string }>

sendAudio

  • sendAudio(to: string, filePath: string, options?: any): Promise<unknown>
  • Send audio file

    Parameters

    • to: string

      Chat id

    • filePath: string

      Path file

    • options: any = {}

    Returns Promise<unknown>

sendAudioBase64

  • sendAudioBase64(to: string, base64: string, options?: any): Promise<unknown>
  • Send audio base64

    Parameters

    • to: string

      Chat id

    • base64: string

      base64 data

    • options: any = {}

    Returns Promise<unknown>

sendFile

  • sendFile(to: string, filePath: string, options?: any): Promise<unknown>
  • Sends file from path

    Parameters

    • to: string

      Chat id

    • filePath: string

      File path

    • options: any = {}

    Returns Promise<unknown>

sendImage

  • sendImage(to: string, filePath: string, options?: any): Promise<unknown>
  • Sends image message

    Parameters

    • to: string

      Chat id

    • filePath: string

      File path or http link

    • options: any = {}

    Returns Promise<unknown>

sendImageFromBase64

  • sendImageFromBase64(to: string, base64: string, options?: any): Promise<unknown>
  • Sends image message base64

    Parameters

    • to: string

      Chat id

    • base64: string

      File path, http link or base64Encoded

    • options: any = {}

    Returns Promise<unknown>

sendMessage

  • sendMessage(options: sendOptions): Promise<any>

sendText

  • sendText(to: string, body: string, options?: any): Promise<unknown>

setGroupDescription

  • setGroupDescription(groupId: string, description: string): Promise<InterfaceScope>
  • Parameters to change group description

    Parameters

    • groupId: string

      group number

    • description: string

      group description

    Returns Promise<InterfaceScope>

setGroupImage

  • setGroupImage(groupId: string, path: string): Promise<InterfaceScope>
  • Parameters to change group image

    Parameters

    • groupId: string

      group number

    • path: string

      of image

    Returns Promise<InterfaceScope>

Generated using TypeDoc