Lark: group chat sends are refused by the platform while p2p sends succeed

Aperta
#17 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
elixir
Ambito
backend

Direzione di ricerca

Start by locating im_api.lark.send_message and the code that produces the Chinese refusal, then trace how it checks group chat destinations and permissions. Compare that path with successful p2p sends and inspect the relevant tests or add a reproduction for group sends. Done means group messages reach Lark with and without reply_to, while p2p behavior remains intact.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What happens

im_api.lark.send_message (Lark/Feishu connect) works for p2p chats but every send to a group chat is refused before it reaches Lark. The refusal is a product-level Chinese message, not a Lark API error:

我无法向 <群名> 发送:你不在其中,或我无法确认权限

(Contrast: a genuinely Lark-side failure surfaces as e.g. error: Lark API error 230013 (HTTP 400): Bot has NO availability to this user.)

Steps to reproduce

  1. Connect a Lark app (Feishu) to a Comma workspace; verify p2p sending works.
  2. Have someone mention the bot in a group chat the bot receives messages from.
  3. Reply with im_api.lark.send_message using that group's chat_id (with and without reply_to).

Expected

The message is posted to the group (Feishu permission im:message:send_as_bot is granted).

Actual

The send is rejected by the platform with the message above. Reproduced on two different group chats, with and without reply_to, and with both a plain text body and a Markdown body.

Evidence that the Feishu side is configured

  • im:message and im:message:send_as_bot are granted (checked in the developer console, status 已开通).
  • An app version has been published after granting them.
  • p2p sending works from the same connect, same credentials.
  • Receiving from those groups works (messages arrive and trigger the agent), so the bot is present in the groups.

Impact

Blocks group-facing use cases: posting build/release notifications into a team group, answering in groups, any "announce in this chat" workflow. Currently only p2p replies work.

Notes

The refusal text looks like a Comma-side destination/authorization check rather than a Lark response, which is why I am filing here rather than as a Feishu permission bug. Happy to provide request ids / timestamps and run more probes if useful.

Lingua principale
Elixir
Stelle
740
Fork
61
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AFK-surf/Comma

Tutte le issue di AFK-surf/Comma

Issue simili

Altre issue su Elixir

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.