mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ Add "sendMediaGroup" functionality to Telegram-Node #135
This commit is contained in:
@@ -73,10 +73,15 @@ export function addAdditionalFields(this: IExecuteFunctions, body: IDataObject,
|
||||
const additionalFields = this.getNodeParameter('additionalFields', index) as IDataObject;
|
||||
Object.assign(body, additionalFields);
|
||||
|
||||
const operation = this.getNodeParameter('operation', index) as string;
|
||||
|
||||
// Add the reply markup
|
||||
const replyMarkupOption = this.getNodeParameter('replyMarkup', index) as string;
|
||||
if (replyMarkupOption === 'none') {
|
||||
return;
|
||||
let replyMarkupOption = '';
|
||||
if (operation !== 'sendMediaGroup') {
|
||||
replyMarkupOption = this.getNodeParameter('replyMarkup', index) as string;
|
||||
if (replyMarkupOption === 'none') {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
body.reply_markup = {} as IMarkupForceReply | IMarkupReplyKeyboardRemove | ITelegramInlineReply | ITelegramReplyKeyboard;
|
||||
|
||||
Reference in New Issue
Block a user