mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 09:51:24 -06:00
feat: Add LinkPreview Option
Add LinkPreview Option
This commit is contained in:
commit
9f52f20660
@ -15,6 +15,7 @@ export class Options {
|
||||
presence?: WAPresence;
|
||||
quoted?: Quoted;
|
||||
mentions?: Mentions;
|
||||
linkPreview?: boolean;
|
||||
}
|
||||
class OptionsMessage {
|
||||
options: Options;
|
||||
|
@ -1485,6 +1485,8 @@ export class WAStartupService {
|
||||
this.logger.verbose('Sending presence update: paused');
|
||||
}
|
||||
|
||||
let linkPreview = (options?.linkPreview != false) ? undefined : false;
|
||||
|
||||
let quoted: WAMessage;
|
||||
|
||||
if (options?.quoted) {
|
||||
@ -1578,6 +1580,7 @@ export class WAStartupService {
|
||||
{
|
||||
text: message['conversation'],
|
||||
mentions,
|
||||
linkPreview: linkPreview,
|
||||
} as unknown as AnyMessageContent,
|
||||
option as unknown as MiscMessageGenerationOptions,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user