RocketChat / RocketChat/Rocket.Chat
Telegram bot can't post via incoming Webhook: "Cannot destructure property 'from' of 'r' as it is undefined."
Nobody has claimed this yet.
- 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:
- Install Telegram App
- Check the link in description to create a message with curl and an incoming webhook
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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