mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 20:19:14 +00:00
Feat: change profile/group picture (#1916)
* feat: pfp * Make eslint happy * Fix typo * Fix missing comma * Update src/util/Injected.js * ESLint * Update src/util/Injected.js * mfw purp breaks indentation --------- Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
10
index.d.ts
vendored
10
index.d.ts
vendored
@@ -148,6 +148,12 @@ declare namespace WAWebJS {
|
||||
/** Unmutes the Chat */
|
||||
unmuteChat(chatId: string): Promise<void>
|
||||
|
||||
/** Sets the current user's profile picture */
|
||||
setProfilePicture(media: MessageMedia): Promise<boolean>
|
||||
|
||||
/** Deletes the current user's profile picture */
|
||||
deleteProfilePicture(): Promise<boolean>
|
||||
|
||||
/** Generic event */
|
||||
on(event: string, listener: (...args: any) => void): this
|
||||
|
||||
@@ -1162,6 +1168,10 @@ declare namespace WAWebJS {
|
||||
revokeInvite: () => Promise<void>;
|
||||
/** Makes the bot leave the group */
|
||||
leave: () => Promise<void>;
|
||||
/** Sets the group's picture.*/
|
||||
setPicture: (media: MessageMedia) => Promise<boolean>;
|
||||
/** Deletes the group's picture */
|
||||
deletePicture: () => Promise<boolean>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user