Constructors
constructor
- new MediaPrep(type, p): MediaPrep
Methods
sendToChat
- sendToChat(e, options): Promise<SendMsgResult>
Parameters
- e: ChatModel
- options: {
caption?: string;
ctwaContext?: any;
footer?: string;
forwardedFromWeb?: boolean;
forwardingScore?: any;
isForwarded?: boolean;
isViewOnce?: boolean;
mentionedJidList?: any;
multicast?: any;
productMsgOptions?: ModelPropertiesContructor<MsgModel>;
quotedMsg?: MsgModel;
type?: string;
}Optional
caption?: string
Optional
ctwaContext?: any
Optional
footer?: string
Optional
forwardedFromWeb?: boolean
Optional
forwardingScore?: any
Optional
isForwarded?: boolean
Optional
isViewOnce?: boolean
Optional
mentionedJidList?: any
Optional
multicast?: any
Optional
quotedMsg?: MsgModel
Optional
type?: string
waitForPrep
- waitForPrep(): Promise<MediaDataModel>