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