"""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 TypeInputFile, TypeInputPhoto, TypeInputUser, TypeVideoSize class DeletePhotosRequest(TLRequest): CONSTRUCTOR_ID = 0x87cf7f2f SUBCLASS_OF_ID = 0x8918e168 def __init__(self, id: List['TypeInputPhoto']): """ :returns Vector: This type has no constructors. """ self.id = id async def resolve(self, client, utils): _tmp = [] for _x in self.id: _tmp.append(utils.get_input_photo(_x)) self.id = _tmp def to_dict(self): return { '_': 'DeletePhotosRequest', 'id': [] if self.id is None else [x.to_dict() if isinstance(x, TLObject) else x for x in self.id] } def _bytes(self): return b''.join(( b'/\x7f\xcf\x87', b'\x15\xc4\xb5\x1c',struct.pack('