SetAvatar 设置头像
(avatar io.ReadSeeker)
| 1271 | |
| 1272 | // SetAvatar 设置头像 |
| 1273 | func (c *QQClient) SetAvatar(avatar io.ReadSeeker) error { |
| 1274 | if avatar == nil { |
| 1275 | return errors.New("avatar is nil") |
| 1276 | } |
| 1277 | md5, size := crypto.ComputeMd5AndLength(avatar) |
| 1278 | return c.highwayUpload(90, avatar, uint64(size), md5, nil) |
| 1279 | } |
| 1280 | |
| 1281 | // SetGroupAvatar 设置群头像 |
| 1282 | func (c *QQClient) SetGroupAvatar(groupUin uint32, avatar io.ReadSeeker) error { |
nothing calls this directly
no test coverage detected