feat: privacy settings update functions and profile pic remove function (#5)

This commit is contained in:
✬Ravindu Manoj✬ ✓
2023-05-06 23:40:43 +05:30
committed by GitHub
parent b7878e5311
commit 13810ec7ea
3 changed files with 138 additions and 2 deletions

View File

@@ -3,6 +3,13 @@ import type { AccountSettings } from './Auth'
import type { BufferedEventData } from './Events'
import type { MinimalMessage } from './Message'
/** privacy settings in WhatsApp Web */
export type WAPrivacyValue = 'all' | 'contacts' | 'contact_blacklist' | 'none'
export type WAPrivacyOnlineValue = 'all' | 'match_last_seen'
export type WAReadReceiptsValue = 'all' | 'none'
/** set of statuses visible to other people; see updatePresence() in WhatsAppWeb.Send */
export type WAPresence = 'unavailable' | 'available' | 'composing' | 'recording' | 'paused'