Skip to content

Commit

Permalink
feat(Telegram Node): Disable page preview by default (#9267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joffcom committed May 1, 2024
1 parent ed98ca2 commit 41ce178
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/nodes-base/nodes/Telegram/GenericFunctions.ts
Expand Up @@ -105,6 +105,14 @@ export function addAdditionalFields(
}
}

if (
nodeVersion &&
nodeVersion >= 1.2 &&
additionalFields.disable_web_page_preview === undefined
) {
body.disable_web_page_preview = true;
}

delete additionalFields.appendAttribution;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Telegram/Telegram.node.ts
Expand Up @@ -18,7 +18,7 @@ export class Telegram implements INodeType {
name: 'telegram',
icon: 'file:telegram.svg',
group: ['output'],
version: [1, 1.1],
version: [1, 1.1, 1.2],
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Sends data to Telegram',
defaults: {
Expand Down

0 comments on commit 41ce178

Please sign in to comment.