Versions in this module Expand all Collapse all v1 v1.0.0 May 12, 2023 Changes in this version + const MediaTypeImage + const MediaTypeNews + const MediaTypeThumb + const MediaTypeVideo + const MediaTypeVoice + func Download(clt *core.Client, mediaId, filepath string) (written int64, err error) + func DownloadToWriter(clt *core.Client, mediaId string, writer io.Writer) (written int64, err error) + type Article struct + Author string + Content string + ContentSourceURL string + Digest string + ShowCoverPic int + ThumbMediaId string + Title string + type MediaInfo struct + CreatedAt int64 + MediaId string + MediaType string + func UploadImage(clt *core.Client, filepath string) (info *MediaInfo, err error) + func UploadImageFromReader(clt *core.Client, filename string, reader io.Reader) (info *MediaInfo, err error) + func UploadNews(clt *core.Client, news *News) (info *MediaInfo, err error) + func UploadThumb(clt *core.Client, _filepath string) (info *MediaInfo, err error) + func UploadThumbFromReader(clt *core.Client, filename string, reader io.Reader) (info *MediaInfo, err error) + func UploadVideo(clt *core.Client, filepath string) (info *MediaInfo, err error) + func UploadVideo2(clt *core.Client, mediaId, title, description string) (info *MediaInfo, err error) + func UploadVideoFromReader(clt *core.Client, filename string, reader io.Reader) (info *MediaInfo, err error) + func UploadVoice(clt *core.Client, filepath string) (info *MediaInfo, err error) + func UploadVoiceFromReader(clt *core.Client, filename string, reader io.Reader) (info *MediaInfo, err error) + type News struct + Articles []Article