"""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 class FinishJobRequest(TLRequest): CONSTRUCTOR_ID = 0x4f1ebf24 SUBCLASS_OF_ID = 0xf5b399ac def __init__(self, job_id: str, error: Optional[str]=None): """ :returns Bool: This type has no constructors. """ self.job_id = job_id self.error = error def to_dict(self): return { '_': 'FinishJobRequest', 'job_id': self.job_id, 'error': self.error } def _bytes(self): return b''.join(( b'$\xbf\x1eO', struct.pack('