mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Configure Deserializable object. (Set bot for types) and stop using __slots__
This commit is contained in:
parent
a703fc9587
commit
716865695c
21 changed files with 24 additions and 69 deletions
|
|
@ -2,8 +2,6 @@ from . import Deserializable
|
|||
|
||||
|
||||
class Document(Deserializable):
|
||||
__slots__ = ('file_id', 'thumb', 'file_name', 'mime_type', 'file_size')
|
||||
|
||||
def __init__(self, file_id, thumb, file_name, mime_type, file_size):
|
||||
self.file_id = file_id
|
||||
self.thumb = thumb
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue