"""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 TypeInputChannel, TypeInputCheckPasswordSRP, TypeInputPeer class GetBroadcastRevenueStatsRequest(TLRequest): CONSTRUCTOR_ID = 0xf788ee19 SUBCLASS_OF_ID = 0x2cee3078 def __init__(self, peer: 'TypeInputPeer', dark: Optional[bool]=None): """ :returns stats.BroadcastRevenueStats: Instance of BroadcastRevenueStats. """ self.peer = peer self.dark = dark async def resolve(self, client, utils): self.peer = utils.get_input_peer(await client.get_input_entity(self.peer)) def to_dict(self): return { '_': 'GetBroadcastRevenueStatsRequest', 'peer': self.peer.to_dict() if isinstance(self.peer, TLObject) else self.peer, 'dark': self.dark } def _bytes(self): return b''.join(( b'\x19\xee\x88\xf7', struct.pack('