diff --git a/update.go b/update.go index 329563e..7932745 100644 --- a/update.go +++ b/update.go @@ -74,6 +74,14 @@ func (u *Update) DocumentName() string { return u.Message.Document.FileName } +func (u *Update) DocumentSize() int { + return u.Message.Document.FileSize +} + +func (u *Update) DocumentMimeType() string { + return u.Message.Document.MimeType +} + func (u *Update) HasPhotos() bool { return u.Message != nil && u.Message.Photo != nil && len(u.Message.Photo) != 0