Added method to block/unblock user (close #233)

This commit is contained in:
Edgard
2020-12-13 16:16:58 -03:00
committed by Edgard Messias
parent 282fdb1bd3
commit 0bf0ec6490
6 changed files with 96 additions and 3 deletions

View File

@@ -428,6 +428,10 @@ export interface PresenceUpdate {
type?: Presence
deny?: boolean
}
export interface BlocklistUpdate {
added: string[]
removed: string[]
}
// path to upload the media
export const MediaPathMap = {
imageMessage: '/mms/image',
@@ -467,4 +471,5 @@ export type BaileysEvent =
'group-update' |
'received-pong' |
'credentials-updated' |
'connection-validated'
'connection-validated' |
'blocklist-update'