update broadcast lists

This commit is contained in:
Adhiraj Singh
2021-07-16 23:48:43 +05:30
parent f356fa1811
commit e65f060664
4 changed files with 37 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
import BinaryNode from "../BinaryNode";
import { EventEmitter } from 'events'
import { Chat, Contact, Presence, PresenceData, WABroadcastListInfo, SocketConfig, WAFlag, WAMetric, WABusinessProfile, ChatModification, WAMessageKey, WAMessage } from "../Types";
import { Chat, Contact, Presence, PresenceData, SocketConfig, WAFlag, WAMetric, WABusinessProfile, ChatModification, WAMessageKey, WAMessage } from "../Types";
import { debouncedTimeout, unixTimestampSeconds, whatsappID } from "../Utils/generics";
import makeAuthSocket from "./auth";
import { Attributes, BinaryNode as BinaryNodeBase } from "../BinaryNode/types";
@@ -413,14 +413,6 @@ const makeChatsSocket = (config: SocketConfig) => {
}
return response
},
/** Query broadcast list info */
getBroadcastListInfo: (jid: string) => {
return query({
json: ['query', 'contact', jid],
expect200: true,
requiresPhoneConnection: true
}) as Promise<WABroadcastListInfo>
},
/**
* Update the profile picture
* @param jid