feat(Telegram Node): Disable page preview by default (#9267)

This commit is contained in:
Jon 2024-05-01 10:15:58 +01:00 committed by GitHub
parent ed98ca2fb7
commit 41ce178491
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -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;
}

View file

@ -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: {