This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues/pull-requests.
|
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,
|
|
}
|
|
}
|