mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-28 21:27:14 +00:00
feat(agent): integrate structured runner interactions
This commit is contained in:
@@ -430,6 +430,8 @@ class WecomBotWsClient:
|
||||
card_payload: ``{"msgtype": "template_card", "template_card": {...}}``
|
||||
as produced by :func:`build_button_interaction_payload`.
|
||||
"""
|
||||
if card_payload.get('msgtype') != 'template_card' or not isinstance(card_payload.get('template_card'), dict):
|
||||
raise ValueError('invalid WeCom template_card payload')
|
||||
req_id = _generate_req_id(CMD_SEND_MSG)
|
||||
body = dict(card_payload)
|
||||
body['chatid'] = chat_id
|
||||
|
||||
Reference in New Issue
Block a user