1
0
telegram/utils_document.go

13 lines
193 B
Go
Raw Normal View History

2018-08-15 13:26:07 +00:00
package telegram
func (d *Document) HasThumb() bool {
return d != nil && d.Thumb != nil
}
2018-10-12 10:48:33 +00:00
func (d *Document) File() *File {
return &File{
FileID: d.FileID,
FileSize: d.FileSize,
}
}