Commit 975dc2c
committed
fix(n8n): drop Telegram fromId fallback — silently misrouted group chats
`meta.fromId` is the Telegram sender's *user* id, which equals the chat
id only in private 1:1 DMs. In group chats / channels the chat id is a
distinct (typically negative) integer. Falling back to fromId silently
routed group-chat workflows back to the user's DM instead of the group
(Greptile P1).
Drop the fallback. Only use the canonical `metadata.telegram.chatId`.
If the upstream Telegram plugin hasn't populated that yet (pre-existing
schema gap — flat `metadata.fromId` is the de-facto inbound shape today
for Telegram), Telegram routing is skipped rather than guessed. Discord
and Slack routing are unaffected.1 parent c0f3cbc commit 975dc2c
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
698 | 705 | | |
699 | | - | |
| 706 | + | |
700 | 707 | | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
| 708 | + | |
705 | 709 | | |
706 | 710 | | |
707 | 711 | | |
| |||
0 commit comments