Skip to main content
  • setDisplayName(chat, displayName, options) renames a group chat.
  • addParticipants(chat, addresses, options) invites addresses into a group chat.
  • removeParticipants(chat, addresses, options) removes addresses from a group chat.
  • leave(chat, options) makes the local account leave a group chat.
  • setIcon(chat, data, options) replaces the group photo.
  • getIcon(chat) downloads the group photo bytes and MIME type.
  • removeIcon(chat, options) clears the group photo.

Methods

addParticipants()

Parameters

string
required
string[]
required

Returns

Chat

getIcon()

Parameters

string
required

Returns

GroupIcon

leave()

Parameters

string
required

Returns

Promise<void>

removeIcon()

Parameters

string
required

Returns

Promise<void>

removeParticipants()

Parameters

string
required
string[]
required

Returns

Chat

setDisplayName()

Parameters

string
required
string
required

Returns

Chat

setIcon()

Parameters

string
required
Uint8Array
required

Returns

Promise<void>