"""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, TypeInputPeer class GetBroadcastStatsRequest(TLRequest): CONSTRUCTOR_ID = 0xab42441a SUBCLASS_OF_ID = 0x7ff25428 def __init__(self, channel: 'TypeInputChannel', dark: Optional[bool]=None): """ :returns stats.BroadcastStats: Instance of BroadcastStats. """ 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 { '_': 'GetBroadcastStatsRequest', 'channel': self.channel.to_dict() if isinstance(self.channel, TLObject) else self.channel, 'dark': self.dark } def _bytes(self): return b''.join(( b'\x1aDB\xab', struct.pack('