(target message.Source, voice *message.VoiceElement)
| 41 | } |
| 42 | |
| 43 | func (c *QQClient) UploadRecord(target message.Source, voice *message.VoiceElement) (*message.VoiceElement, error) { |
| 44 | switch target.SourceType { |
| 45 | case message.SourceGroup: |
| 46 | return c.UploadGroupRecord(uint32(target.PrimaryID), voice) |
| 47 | case message.SourcePrivate: |
| 48 | return c.UploadPrivateRecord(c.GetUID(uint32(target.PrimaryID)), voice) |
| 49 | } |
| 50 | return nil, errors.New("unknown target type") |
| 51 | } |
| 52 | func (c *QQClient) UploadShortVideo(target message.Source, video *message.ShortVideoElement) (*message.ShortVideoElement, error) { |
| 53 | switch target.SourceType { |
| 54 | case message.SourceGroup: |
nothing calls this directly
no test coverage detected