mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
feat(Telegram Node): Disable page preview by default (#9267)
This commit is contained in:
parent
ed98ca2fb7
commit
41ce178491
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue