Telegram to X error on some Messages

Describe the problem/error/question

When I want to transfer some message from Telegram to X, I have 403 error.

It works with this message

What is the error message (if any)?

Please share your workflow


(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Check if there’s any character in that message that could be breaking the string.

Using “.toJsonString()” is a good way to ensure everything is parsed correctly.

From what I can see in the screenshots, it could be the % characters. If your text is being put into a URL without proper encoding, a raw % can make the URL invalid.

You could use .urlEncode() in your expression to see if it fixes the problem.


By the way, you can Pin data in your workflow and share the code here, inside a code block like this:

I would do it by verifying my account on Telegram first, then follow the steps in the n8n app to link my Telegram account. It looks like the issue is caused by a 403 Forbidden error which means your Telegram account doesn’t have permission to access the API. This might be due to a rate limit or an incorrect token being used for authentication. Let me know if this works!

I don’t think so because, If i run with new order message It is successfull

I tested the JSON on anoter site, and It seems OK

[
{
“update_id”: 69478863,
“channel_post”: {
“message_id”: 888,
“sender_chat”: {
“id”: -1003441391071,
“title”: “Digital Trading Channel”,
“username”: “Digital_Trading_Channel”,
“type”: “channel”
},
“chat”: {
“id”: -1003441391071,
“title”: “Digital Trading Channel”,
“username”: “Digital_Trading_Channel”,
“type”: “channel”
},
“date”: 1768652805,
“text”: “:green_circle: CLOSED - USDCHF Buy :green_circle:\n# 12345678\n\n---------{ CLOSED }--------\nEntry: 0.79585\nExit: 0.80280\nProfit: 493.0 € \nProfit: 3.18%\nPips: 69.5\nLots: 1.00\n---------------------------\n​:stopwatch: Duration: 9 Days 7h 56m 59s \n​:money_bag: New Balance: 15 486 €\n​:backhand_index_pointing_right: :backhand_index_pointing_right: Closed Manually\n​:memo:{Telegram: View @Digital_Trading_Channel\nwww.myfxbook.com/members/dawaman/digital-trading-blue/11793209\n}”,
“entities”: [
{
“offset”: 38,
“length”: 144,
“type”: “code”
},
{
“offset”: 243,
“length”: 18,
“type”: “italic”
},
{
“offset”: 264,
“length”: 1,
“type”: “italic”
},
{
“offset”: 265,
“length”: 28,
“type”: “url”
},
{
“offset”: 265,
“length”: 28,
“type”: “italic”
},
{
“offset”: 293,
“length”: 1,
“type”: “italic”
},
{
“offset”: 294,
“length”: 62,
“type”: “url”
},
{
“offset”: 294,
“length”: 62,
“type”: “italic”
},
{
“offset”: 356,
“length”: 2,
“type”: “italic”
}
],
“link_preview_options”: {
“url”: “http://t.me/Digital_Trading_Channel”
}
}
}
]