oapi-sdk-python
oapi-sdk-python copied to clipboard
Larksuite development interface SDK
TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0....
https://github.com/larksuite/oapi-sdk-python/blob/4274991a0c112f5b8e5d99d798e3bcd5b2b748e3/src/larksuiteoapi/api/request/request.py#L280-L300 As above, there should have a corresponding close call at https://github.com/larksuite/oapi-sdk-python/blob/4274991a0c112f5b8e5d99d798e3bcd5b2b748e3/src/larksuiteoapi/api/request/request.py#L291. This bug would cause exception if we have many requests in a short range of time.
Type of Any will cause '_SpecialForm' object has no attribute '__args__'. And in this cause, just use the type itself will be fine.
使用python内置的queue以及threading给出一个异步处理消息的示例,避免处理超时问题 1. 创建一个线程,在worker中调用`handler.do(request)`处理业务逻辑 2. flask的webhook接口接收事件后,调用`parse_req()`解析事件内容,并放入队列,立即返回,避免出现处理业务逻辑超时的问题。
samples/api/auth/v3/internal_app_access_token_sample.py ``` lark.logger.info(lark.JSON.marshal(response.data, indent=4)) ``` AttributeError: 'InternalAppAccessTokenResponse' object has no attribute 'data'
fix model ChatGetResult members by doc.
I guess this [line of code](https://github.com/larksuite/oapi-sdk-python/blob/e619e995a3c25eba984b3596a5dbd5510754ca55/lark_oapi/core/token/auth.py#L50C4-L50C4) should be AccessTokenType.USER since there is not a method to get user_access_token Also I hope there can be a method to find user_access_token Relate...
I'm using `docx.v1.ListDocumentBlockRequest` to get a `docx.v1.Block`. Then I'd like to write: ```Python def get_text_block_by_type(block: docx.v1.Block) -> docx.v1.Text: name = FeishuBlockType(block.block_type).name value = block.__getattribute__(name) if isinstance(value, docx.v1.Text): return value else:...