mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
New types (In process...)
This commit is contained in:
parent
d98566bf7f
commit
84c8548ceb
48 changed files with 2206 additions and 14 deletions
16
aiogram/types/document.py
Normal file
16
aiogram/types/document.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from . import base
|
||||
from . import fields
|
||||
from .photo_size import PhotoSize
|
||||
|
||||
|
||||
class Document(base.TelegramObject):
|
||||
"""
|
||||
This object represents a general file (as opposed to photos, voice messages and audio files).
|
||||
|
||||
https://core.telegram.org/bots/api#document
|
||||
"""
|
||||
file_id: base.String = fields.Field()
|
||||
thumb: PhotoSize = fields.Field(base=PhotoSize)
|
||||
file_name: base.String = fields.Field()
|
||||
mime_type: base.String = fields.Field()
|
||||
file_size: base.Integer = fields.Field()
|
||||
Loading…
Add table
Add a link
Reference in a new issue