venom-bot
Version:
Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media sending, sentence recognition based on artificial intelligence and all types of design archite
38 lines (37 loc) • 1.24 kB
TypeScript
import { Page, Browser } from 'puppeteer';
import { HostLayer } from './host.layer';
import { CreateConfig } from '../../config/create-config';
export declare class ProfileLayer extends HostLayer {
browser: Browser;
page: Page;
constructor(browser: Browser, page: Page, session?: string, options?: CreateConfig);
clearToken(): Promise<void>;
/**
* @param contactsId Example: 0000@c.us | [000@c.us, 1111@c.us]
* @param time duration of silence
* @param type kind of silence "hours" "minutes" "year"
* To remove the silence, just enter the contact parameter
*/
sendMute(id: string, time: number, type: string): Promise<object>;
/**
* Change the theme
* @param string types "dark" or "light"
*/
setTheme(type: string): Promise<boolean>;
/**
* Sets current user profile status
* @param status
*/
setProfileStatus(status: string): Promise<void>;
/**
* Sets the user's current profile photo
* @param name
*/
setProfilePic(path: string, to?: string): Promise<boolean>;
/**
* Sets current user profile name
* @param name
*/
setProfileName(name: string): Promise<void>;
delProfile(): Promise<void>;
}