mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
Feature/paired item support (#3869)
* Add paired item helper and implement it in some nodes
This commit is contained in:
@@ -2047,24 +2047,28 @@ export class Telegram implements INodeType {
|
||||
binary: {
|
||||
data: binaryData,
|
||||
},
|
||||
pairedItem: { item: i },
|
||||
});
|
||||
continue;
|
||||
}
|
||||
} else if (resource === 'chat' && operation === 'administrators') {
|
||||
returnData.push(...this.helpers.returnJsonArray(responseData.result));
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData.result),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
continue;
|
||||
}
|
||||
|
||||
// if (resource === 'bot' && operation === 'info') {
|
||||
// responseData = {
|
||||
// user: responseData.result[0].message.from,
|
||||
// chat: responseData.result[0].message.chat,
|
||||
// };
|
||||
// }
|
||||
returnData.push({ json: responseData });
|
||||
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
returnData.push({ json: { error: error.message } });
|
||||
returnData.push({ json: { }, error: error.message });
|
||||
continue;
|
||||
}
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user