typo fix sendVideoNote

This commit is contained in:
rqtqp 2025-03-01 15:17:19 +02:00
parent 81f8d0fba5
commit 00bc575ee8
2 changed files with 61 additions and 24 deletions

View file

@ -307,6 +307,12 @@ export class Telegram implements INodeType {
description: 'Send a video', description: 'Send a video',
action: 'Send a video', action: 'Send a video',
}, },
{
name: 'Send Video Note',
value: 'sendVideoNote',
description: 'Send a video note',
action: 'Send a video note',
},
{ {
name: 'Unpin Chat Message', name: 'Unpin Chat Message',
value: 'unpinChatMessage', value: 'unpinChatMessage',
@ -348,6 +354,7 @@ export class Telegram implements INodeType {
'sendPhoto', 'sendPhoto',
'sendSticker', 'sendSticker',
'sendVideo', 'sendVideo',
'sendVideoNote',
'unpinChatMessage', 'unpinChatMessage',
], ],
resource: ['chat', 'message'], resource: ['chat', 'message'],
@ -713,7 +720,7 @@ export class Telegram implements INodeType {
'Unique identifier for the target chat or username, To find your chat ID ask @get_id_bot', 'Unique identifier for the target chat or username, To find your chat ID ask @get_id_bot',
}, },
// ---------------------------------- // ----------------------------------
// message:sendAnimation/sendAudio/sendVoice/sendDocument/sendPhoto/sendSticker/sendVideo // message:sendAnimation/sendAudio/sendVoice/sendDocument/sendPhoto/sendSticker/sendVideo/sendVideoNote
// ---------------------------------- // ----------------------------------
{ {
@ -731,6 +738,7 @@ export class Telegram implements INodeType {
'sendDocument', 'sendDocument',
'sendPhoto', 'sendPhoto',
'sendVideo', 'sendVideo',
'sendVideoNote',
'sendSticker', 'sendSticker',
], ],
resource: ['message'], resource: ['message'],
@ -754,6 +762,7 @@ export class Telegram implements INodeType {
'sendDocument', 'sendDocument',
'sendPhoto', 'sendPhoto',
'sendVideo', 'sendVideo',
'sendVideoNote',
'sendSticker', 'sendSticker',
], ],
resource: ['message'], resource: ['message'],
@ -1173,11 +1182,27 @@ export class Telegram implements INodeType {
description: description:
'Video file to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), an HTTP URL for Telegram to get a file from the Internet.', 'Video file to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), an HTTP URL for Telegram to get a file from the Internet.',
}, },
// ---------------------------------- // ----------------------------------
// message:editMessageText/sendAnimation/sendAudio/sendLocation/sendMessage/sendPhoto/sendSticker/sendVideo // message:sendVideoNote
// ----------------------------------
{
displayName: 'VideoNote',
name: 'file',
type: 'string',
default: '',
displayOptions: {
show: {
operation: ['sendVideoNote'],
resource: ['message'],
binaryData: [false],
},
},
description:
'VideoNote file to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), an HTTP URL for Telegram to get a file from the Internet.',
},
// ----------------------------------
// message:editMessageText/sendAnimation/sendAudio/sendLocation/sendMessage/sendPhoto/sendSticker/sendVideo/SendVideoNote
// ---------------------------------- // ----------------------------------
{ {
displayName: 'Reply Markup', displayName: 'Reply Markup',
name: 'replyMarkup', name: 'replyMarkup',
@ -1190,6 +1215,7 @@ export class Telegram implements INodeType {
'sendPhoto', 'sendPhoto',
'sendSticker', 'sendSticker',
'sendVideo', 'sendVideo',
'sendVideoNote',
'sendAudio', 'sendAudio',
'sendVoice', 'sendVoice',
'sendLocation', 'sendLocation',
@ -1223,7 +1249,6 @@ export class Telegram implements INodeType {
default: 'none', default: 'none',
description: 'Additional interface options', description: 'Additional interface options',
}, },
{ {
displayName: 'Force Reply', displayName: 'Force Reply',
name: 'forceReply', name: 'forceReply',
@ -1254,7 +1279,6 @@ export class Telegram implements INodeType {
}, },
], ],
}, },
{ {
displayName: 'Inline Keyboard', displayName: 'Inline Keyboard',
name: 'inlineKeyboard', name: 'inlineKeyboard',
@ -1556,6 +1580,7 @@ export class Telegram implements INodeType {
'sendPhoto', 'sendPhoto',
'sendSticker', 'sendSticker',
'sendVideo', 'sendVideo',
'sendVideoNote',
], ],
resource: ['message'], resource: ['message'],
}, },
@ -1585,6 +1610,7 @@ export class Telegram implements INodeType {
'sendDocument', 'sendDocument',
'sendPhoto', 'sendPhoto',
'sendVideo', 'sendVideo',
'sendVideoNote',
], ],
}, },
}, },
@ -1645,6 +1671,7 @@ export class Telegram implements INodeType {
'sendDocument', 'sendDocument',
'sendPhoto', 'sendPhoto',
'sendVideo', 'sendVideo',
'sendVideoNote',
'sendSticker', 'sendSticker',
], ],
'/resource': ['message'], '/resource': ['message'],
@ -1696,6 +1723,7 @@ export class Telegram implements INodeType {
'sendMessage', 'sendMessage',
'sendPhoto', 'sendPhoto',
'sendVideo', 'sendVideo',
'sendVideoNote',
'sendDocument', 'sendDocument',
], ],
}, },
@ -1745,6 +1773,7 @@ export class Telegram implements INodeType {
'sendPhoto', 'sendPhoto',
'sendSticker', 'sendSticker',
'sendVideo', 'sendVideo',
'sendVideoNote',
], ],
}, },
}, },
@ -1769,7 +1798,13 @@ export class Telegram implements INodeType {
type: 'string', type: 'string',
displayOptions: { displayOptions: {
show: { show: {
'/operation': ['sendAnimation', 'sendAudio', 'sendDocument', 'sendVideo'], '/operation': [
'sendAnimation',
'sendAudio',
'sendDocument',
'sendVideo',
'sendVideoNote',
],
}, },
}, },
default: '', default: '',
@ -2140,6 +2175,18 @@ export class Telegram implements INodeType {
body.chat_id = this.getNodeParameter('chatId', i) as string; body.chat_id = this.getNodeParameter('chatId', i) as string;
body.video = this.getNodeParameter('file', i, '') as string; body.video = this.getNodeParameter('file', i, '') as string;
// Add additional fields and replyMarkup
addAdditionalFields.call(this, body, i);
} else if (operation === 'sendVideoNote') {
// ----------------------------------
// message:sendVideoNote
// ----------------------------------
endpoint = 'sendVideoNote';
body.chat_id = this.getNodeParameter('chatId', i) as string;
body.video = this.getNodeParameter('file', i, '') as string;
// Add additional fields and replyMarkup // Add additional fields and replyMarkup
addAdditionalFields.call(this, body, i); addAdditionalFields.call(this, body, i);
} }

View file

@ -7034,6 +7034,7 @@ packages:
bson@6.10.0: bson@6.10.0:
resolution: {integrity: sha512-ROchNosXMJD2cbQGm84KoP7vOGPO6/bOAW0veMMbzhXLqoZptcaYRVLitwvuhwhjjpU1qP4YZRWLhgETdgqUQw==} resolution: {integrity: sha512-ROchNosXMJD2cbQGm84KoP7vOGPO6/bOAW0veMMbzhXLqoZptcaYRVLitwvuhwhjjpU1qP4YZRWLhgETdgqUQw==}
engines: {node: '>=16.20.1'} engines: {node: '>=16.20.1'}
deprecated: a critical bug affecting only useBigInt64=true deserialization usage is fixed in bson@6.10.3
buffer-crc32@0.2.13: buffer-crc32@0.2.13:
resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
@ -7874,10 +7875,6 @@ packages:
resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==}
engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}
detect-libc@2.0.1:
resolution: {integrity: sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==}
engines: {node: '>=8'}
detect-libc@2.0.3: detect-libc@2.0.3:
resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==} resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==}
engines: {node: '>=8'} engines: {node: '>=8'}
@ -8890,6 +8887,7 @@ packages:
gm@1.25.0: gm@1.25.0:
resolution: {integrity: sha512-4kKdWXTtgQ4biIo7hZA396HT062nDVVHPjQcurNZ3o/voYN+o5FUC5kOwuORbpExp3XbTJ3SU7iRipiIhQtovw==} resolution: {integrity: sha512-4kKdWXTtgQ4biIo7hZA396HT062nDVVHPjQcurNZ3o/voYN+o5FUC5kOwuORbpExp3XbTJ3SU7iRipiIhQtovw==}
engines: {node: '>=14'} engines: {node: '>=14'}
deprecated: The gm module has been sunset. Please migrate to an alternative. https://github.com/aheckmann/gm?tab=readme-ov-file#2025-02-24-this-project-is-not-maintained
google-auth-library@8.9.0: google-auth-library@8.9.0:
resolution: {integrity: sha512-f7aQCJODJFmYWN6PeNKzgvy9LI2tYmXnzpNDHEjG5sDNPgGb2FXQyTBnXeSH+PAtpKESFD+LmHw3Ox3mN7e1Fg==} resolution: {integrity: sha512-f7aQCJODJFmYWN6PeNKzgvy9LI2tYmXnzpNDHEjG5sDNPgGb2FXQyTBnXeSH+PAtpKESFD+LmHw3Ox3mN7e1Fg==}
@ -8912,9 +8910,6 @@ packages:
gopd@1.0.1: gopd@1.0.1:
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==} resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
graceful-fs@4.2.10:
resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==}
graceful-fs@4.2.11: graceful-fs@4.2.11:
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
@ -21131,8 +21126,6 @@ snapshots:
destroy@1.2.0: {} destroy@1.2.0: {}
detect-libc@2.0.1: {}
detect-libc@2.0.3: {} detect-libc@2.0.3: {}
detect-newline@3.1.0: {} detect-newline@3.1.0: {}
@ -22537,9 +22530,6 @@ snapshots:
dependencies: dependencies:
get-intrinsic: 1.2.4 get-intrinsic: 1.2.4
graceful-fs@4.2.10:
optional: true
graceful-fs@4.2.11: {} graceful-fs@4.2.11: {}
graphemer@1.4.0: {} graphemer@1.4.0: {}
@ -24888,7 +24878,7 @@ snapshots:
dependencies: dependencies:
env-paths: 2.2.1 env-paths: 2.2.1
glob: 7.2.3 glob: 7.2.3
graceful-fs: 4.2.10 graceful-fs: 4.2.11
make-fetch-happen: 9.1.0 make-fetch-happen: 9.1.0
nopt: 5.0.0 nopt: 5.0.0
npmlog: 6.0.2 npmlog: 6.0.2
@ -25573,7 +25563,7 @@ snapshots:
prebuild-install@7.1.1: prebuild-install@7.1.1:
dependencies: dependencies:
detect-libc: 2.0.1 detect-libc: 2.0.3
expand-template: 2.0.3 expand-template: 2.0.3
github-from-package: 0.0.0 github-from-package: 0.0.0
minimist: 1.2.8 minimist: 1.2.8