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_note.go

17 lines
234 B
Go
Raw Normal View History

2018-11-29 20:32:51 +04:00
package telegram
func (vn *VideoNote) HasThumb() bool {
return vn != nil && vn.Thumb != nil
}
func (vn *VideoNote) File() *File {
if vn == nil {
return nil
}
return &File{
FileID: vn.FileID,
FileSize: vn.FileSize,
}
}