Archived
1
This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
fwzookeeper/vendor/gitlab.com/toby3d/telegram/utils_video.go

17 lines
219 B
Go

package telegram
func (v *Video) HasThumb() bool {
return v != nil && v.Thumb != nil
}
func (v *Video) File() *File {
if v == nil {
return nil
}
return &File{
FileID: v.FileID,
FileSize: v.FileSize,
}
}