Skip to content

Python SDK Card object structure is outdated #98

@Tolsi

Description

@Tolsi

the card event json is: body:

{"schema":"2.0","header":{"event_id":"73e49f503b39874de7670ab5b852672c","create_time":"1747740328528651","event_type":"card.action.trigger","tenant_key":"123","app_id":"123"},"event":{"operator":{"tenant_key":"123","open_id":"123","union_id":"123"},"token":"123","action":{"tag":"button"},"host":"im_message","context":{"open_message_id":"123","open_chat_id":"123"}}}

but your python card object has different structure: oapi-sdk-python/lark_oapi/card/model.py at 06c37e71eb5f3176012c7580062bd5230d435149 · larksuite/oapi

All Card object fields are None after the JSON unmarshalling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions