Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SenderLayer

Hierarchy

Index

Constructors

constructor

Properties

autoCloseInterval

autoCloseInterval: any

autoCloseRemain

autoCloseRemain: number = 0

browser

browser: Browser

ev

ev: any

options

options: CreateOptions

page

page: Page

scanPhoneNumbersActive

scanPhoneNumbersActive: boolean = false

scanQrCodeActive

scanQrCodeActive: boolean = false

startScanQrcode

startScanQrcode: boolean

Methods

addParticipant

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

asciiQr

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

browserClose

  • browserClose(): Promise<undefined | boolean>

cancelAutoClose

  • cancelAutoClose(): void

checkInputVisiblePhoneNumber

  • checkInputVisiblePhoneNumber(): Promise<boolean>

checkNumber

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

createGroup

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

decryptFile

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

getAllChatsGroups

  • getAllChatsGroups(): Promise<any>

getAllContacts

  • getAllContacts(): Promise<Contact>

getGroupParticipant

  • getGroupParticipant(groupId: string): Promise<any>

getHost

getPairingType

  • getPairingType(): Promise<string>

getWAVersion

  • getWAVersion(): Promise<any>

handleApiCallPage

handleApiCallParametres

  • handleApiCallParametres<K>(functionName: K, ...args: FunctionParameters[K]): Promise<any>

initListener

  • initListener(): Promise<void>

interfaceChange

  • interfaceChange(): void

loadAndGetAllMessagesInChat

  • loadAndGetAllMessagesInChat(chatId: string, date: string): Promise<any>

logoutSession

  • logoutSession(): Promise<any>

newDeleteMessage

  • newDeleteMessage(): void

newEditMessage

  • newEditMessage(): void

newMessage

  • newMessage(): void

newOnAck

  • newOnAck(): void

onIntroReactionMessage

  • onIntroReactionMessage(): void

onReactionMessage

  • onReactionMessage(): void

qrCode

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

qrCodeScan

  • qrCodeScan(): Promise<void>

scanPhoneNumbers

  • scanPhoneNumbers(): Promise<void>

screenshot

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

sendAudio

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

sendAudioBase64

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

sendFile

  • sendFile(to: string, filePath: string, options?: any): 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

sendText

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

setGroupDescription

  • setGroupDescription(groupId: string, description: string): Promise<InterfaceScope>

setGroupImage

  • setGroupImage(groupId: string, path: string): Promise<InterfaceScope>

withPhoneNumber

  • withPhoneNumber(): Promise<boolean>

Generated using TypeDoc