1
0
telegram/utils_document.go
2018-10-12 15:48:33 +05:00

13 lines
193 B
Go

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