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 request] 上传图片超时, 可否手动设置上传超时时间 #108

Closed
niuhuan opened this issue Feb 20, 2023 · 1 comment
Closed

Comments

@niuhuan
Copy link
Contributor

niuhuan commented Feb 20, 2023

上传高清图的时候,client.upload_group_image 返回了timeout,
群友给的建议是手动设置超时时间。

@lz1998
Copy link
Owner

lz1998 commented Feb 20, 2023

@lz1998 可以说一下怎么改,我去PR也可以。(如果改不是特别复杂的话)

发送图片流程是:

  1. 上传图片,获取图片文件 ID(可以用 id 构造 GroupImage)
  2. 发送 GroupImage(实际上只是 id)

上传群图片在这里

pub async fn upload_group_image(&self, group_code: i64, data: &[u8]) -> RQResult<GroupImage> {

你的那个是发送群消息。

@niuhuan niuhuan closed this as completed Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants