Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: 更改 Media, Audio, File 消息段参数 #74

Closed
RF-Tar-Railt opened this issue Sep 7, 2023 · 1 comment · Fixed by #75
Closed

Feature: 更改 Media, Audio, File 消息段参数 #74

RF-Tar-Railt opened this issue Sep 7, 2023 · 1 comment · Fixed by #75
Assignees
Labels
enhancement New feature or request

Comments

@RF-Tar-Railt
Copy link
Member

是否在使用中遇到某些问题而需要新的特性?请描述:

飞书适配器目前对于 audio 和 media 的构建参数为

@staticmethod
def audio(file_key: str, duration: int) -> "MessageSegment": ...

@staticmethod
def media(file_key: str, image_key: str, file_name: str, duration: int) -> "MessageSegment": ...

而按照飞书文档
image
image
image

audio 的 duration 与 media 的 image_key 皆为可选参数

描述你所需要的特性:

将 duration 与 image_key 设为可选参数

@RF-Tar-Railt RF-Tar-Railt added the enhancement New feature or request label Sep 7, 2023
@RF-Tar-Railt RF-Tar-Railt changed the title Feature: 更改 Media, Audio 消息段参数 Feature: 更改 Media, Audio, File 消息段参数 Sep 7, 2023
@RF-Tar-Railt
Copy link
Member Author

File 也是一样的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants