"""File generated by TLObjects' generator. All changes will be ERASED""" from ...tl.tlobject import TLObject from ...tl.tlobject import TLRequest from typing import Optional, List, Union, TYPE_CHECKING import os import struct from datetime import datetime if TYPE_CHECKING: from ...tl.types import TypeInputPeer, TypeInputUser class ApplyBoostRequest(TLRequest): CONSTRUCTOR_ID = 0x6b7da746 SUBCLASS_OF_ID = 0xad3512db def __init__(self, peer: 'TypeInputPeer', slots: Optional[List[int]]=None): """ :returns premium.MyBoosts: Instance of MyBoosts. """ self.peer = peer self.slots = slots async def resolve(self, client, utils): self.peer = utils.get_input_peer(await client.get_input_entity(self.peer)) def to_dict(self): return { '_': 'ApplyBoostRequest', 'peer': self.peer.to_dict() if isinstance(self.peer, TLObject) else self.peer, 'slots': [] if self.slots is None else self.slots[:] } def _bytes(self): return b''.join(( b'F\xa7}k', struct.pack('