No additional fields in telegram node - self hosted n8n

Describe the problem/error/question

There is no additional field options in telegram trigger node.
Only download image files is there. i want to filter on additional fields such as chat id. Right now I am having to add code nodes

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:
    1.85.4

  • Database (default: SQLite): postgres

  • n8n EXECUTIONS_PROCESS setting (default: own, main):

  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker

  • Operating system: Ubuntu

Hi,

this is something you will filter after the webhook?

IMHO this shouldn’t be a functionality of the node itself.

In addition, why would you need to use a code node to filter out a chatid?

reg.
J.

Its pretty simple. i want to output only chatid field from incoming “message” from the trigger node for next node to handle. as for your question on code node is there any other way to extract the relevant fields from the full message ? Here’s the code node js code for telegram trigger node input (full message) -
return {
chat_id: $input.all()[0].json.message.chat.id,
update_id: $input.all()[0].json.update_id
};

what about this?

please accept as solution if it solves your problem

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.