Telegram trigger not activating

okay so now i have tested to see if anything happens, i think i am close but not there yet; the trigger receives my message, but only if i say /start (you can see executions top left corner) and doesn’t pass my question on to the AI.
@
So i see that the execution number rises, but the agent doesn’t do anything ;

@ramin1 @Parintele_Damaskin yes because my account is new on the site they limited my interactions. It turned out i made a mistake setting up the telegram webhook. I really find it frustrating that all of the tutorials do not mention this crucial step. I’m very new and i really like that n8n has so much documentation and information, however all the tutorials are catered towards coding-savvy people who already understand what is being implied, therefore being impossible to understand for regular people like me. Anyways i made an error with the webhook and now it works !

I only want to know, my sendmessage trigger often gets the error; message is too long, and i’m wondering if there is a way to split outputs into multiple messages, or how i can configure outputs to a certain length (under 4096 characters). if you have any idea, please let me know! @Parintele_Damaskin thank you for the help aswell!

Telegram’s sendMessage API limitations

The maximum length of a text message is 4,096 characters (including line breaks, Markdown, HTML).

Add a Code node before the Telegram node to split the message into multiple loops for sending.

This would be in the code node:

const text = $input.first().json.text; // Replace with your input field if different

const chunkSize = 4096;

const result = ;

for (let i = 0; i < text.length; i += chunkSize) {

result.push({

json: {

  text: text.slice(i, i + chunkSize)

}

});

}

return result;

This will outpuut an arrray of items, each with a text prooperty contining a chunk of up to 4096 charnacters. You can then use a Loop Over Items node to send each chunk as a separate messag.

And yea, I think you need the official courses, so you can understand how n8n works.

Cheers!

Or video