"""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 TypeInputMedia, TypeInputPeer, TypeInputPrivacyRule, TypeMediaArea, TypeMessageEntity, TypeReaction, TypeReportReason class ActivateStealthModeRequest(TLRequest): CONSTRUCTOR_ID = 0x57bbd166 SUBCLASS_OF_ID = 0x8af52aac def __init__(self, past: Optional[bool]=None, future: Optional[bool]=None): """ :returns Updates: Instance of either UpdatesTooLong, UpdateShortMessage, UpdateShortChatMessage, UpdateShort, UpdatesCombined, Updates, UpdateShortSentMessage. """ self.past = past self.future = future def to_dict(self): return { '_': 'ActivateStealthModeRequest', 'past': self.past, 'future': self.future } def _bytes(self): return b''.join(( b'f\xd1\xbbW', struct.pack(': This type has no constructors. """ self.peer = peer self.id = id async def resolve(self, client, utils): self.peer = utils.get_input_peer(await client.get_input_entity(self.peer)) def to_dict(self): return { '_': 'DeleteStoriesRequest', 'peer': self.peer.to_dict() if isinstance(self.peer, TLObject) else self.peer, 'id': [] if self.id is None else self.id[:] } def _bytes(self): return b''.join(( b'_\xdbY\xae', self.peer._bytes(), b'\x15\xc4\xb5\x1c',struct.pack('