Skip to content

fix(Telegram Node): "source.on is not a function" in Telegram with binary file and Reply Markup #16458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RomanDavydchuk
Copy link
Contributor

Summary

Fix the source.on is not a function error when there is a binary file and reply markup option. The issue is that the data for reply_markup is an object or an array, which causes problems when passed in the form data (see this). One of the ways to fix this is to JSON.stringify the reply_markup data

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-2974/community-issue-error-sourceon-is-not-a-function-in-telegram-with
Closes #15380

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

Copy link

codecov bot commented Jun 17, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ackages/nodes-base/nodes/Telegram/Telegram.node.ts 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team node/improvement New feature or request labels Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: "source.on is not a function" in Telegram with binary file and Reply Markup
1 participant