"""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 = 0x75dfb671 SUBCLASS_OF_ID = 0x2cee3078 def __init__(self, channel: 'TypeInputChannel', dark: Optional[bool]=None): """ :returns stats.BroadcastRevenueStats: Instance of BroadcastRevenueStats. """ self.channel = channel self.dark = dark async def resolve(self, client, utils): self.channel = utils.get_input_channel(await client.get_input_entity(self.channel)) def to_dict(self): return { '_': 'GetBroadcastRevenueStatsRequest', 'channel': self.channel.to_dict() if isinstance(self.channel, TLObject) else self.channel, 'dark': self.dark } def _bytes(self): return b''.join(( b'q\xb6\xdfu', struct.pack('