17 lines
234 B
Go
17 lines
234 B
Go
|
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,
|
||
|
}
|
||
|
}
|