RocketChat / RocketChat/Rocket.Chat

Telegram bot can't post via incoming Webhook: "Cannot destructure property 'from' of 'r' as it is undefined."

Open
#31,175 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feat: apps
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Telegram Bot is activated, but webhooks don't work.

Steps to reproduce:
  1. Install Telegram App
  2. Check the link in description to create a message with curl and an incoming webhook
  3. Error message
Expected behavior:

Message should appear in Omnichannel Telegram

Actual behavior:

(URL and KEY are changed for privacy reasons)

curl -X POST https://URL/api/apps/private/KEY_/incoming-messages
{"error":"Cannot destructure property 'from' of 'r' as it is undefined."

Server Setup Information:
  • Version of Rocket.Chat Server: 6.5.0
  • Operating System: Debian
  • Deployment Method: docker
  • Number of Running Instances: 1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure against the incoming-messages endpoint at /api/apps/private/KEY_/incoming-messages using the documented curl request, then trace the Telegram webhook handling that produces the destructuring error. Done means a valid incoming Telegram message appears in Omnichannel Telegram without the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.