mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
⚡ Minor imporovement
This commit is contained in:
parent
0d8602de5e
commit
80db50282e
|
@ -550,7 +550,7 @@ export class Telegram implements INodeType {
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
description: 'A JSON-serialized array of results for the inline query.',
|
description: 'A JSON-serialized array of results for the inline query.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Additional Fields',
|
displayName: 'Additional Fields',
|
||||||
name: 'additionalFields',
|
name: 'additionalFields',
|
||||||
|
@ -1750,13 +1750,13 @@ export class Telegram implements INodeType {
|
||||||
// -----------------------------------------------
|
// -----------------------------------------------
|
||||||
|
|
||||||
endpoint = 'answerInlineQuery';
|
endpoint = 'answerInlineQuery';
|
||||||
|
|
||||||
body.inline_query_id = this.getNodeParameter('queryId', i) as string;
|
body.inline_query_id = this.getNodeParameter('queryId', i) as string;
|
||||||
body.results = this.getNodeParameter('results', i) as string;
|
body.results = this.getNodeParameter('results', i) as string;
|
||||||
|
|
||||||
// Add additional fields
|
// Add additional fields
|
||||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
Object.assign(body, additionalFields);
|
Object.assign(body, additionalFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (resource === 'chat') {
|
} else if (resource === 'chat') {
|
||||||
|
|
Loading…
Reference in a new issue