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
Raw Normal View History

2018-11-29 20:32:51 +04:00
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,
}
}