a
    f’i.  ã                   @   s    d dl mZ G dd„ deƒZdS )é   )ÚTLObjectc                   @   s$   e Zd ZdZdZdd„ Zdd„ ZdS )Ú	TLMessagea¥  
    https://core.telegram.org/mtproto/service_messages#simple-container.

    Messages are what's ultimately sent to Telegram:
        message msg_id:long seqno:int bytes:int body:bytes = Message;

    Each message has its own unique identifier, and the body is simply
    the serialized request that should be executed on the server, or
    the response object from Telegram. Since the body is always a valid
    object, it makes sense to store the object and not the bytes to
    ease working with them.

    There is no need to add serializing logic here since that can be
    inlined and is unlikely to change. Thus these are only needed to
    encapsulate responses.
    é   c                 C   s   || _ || _|| _d S )N©Úmsg_idÚseq_noÚobj)Úselfr   r   r   © r
   úO/home/ec2-user/.local/lib/python3.9/site-packages/telethon/tl/core/tlmessage.pyÚ__init__   s    zTLMessage.__init__c                 C   s   d| j | j| jdœS )Nr   )Ú_r   r   r   r   )r	   r
   r
   r   Úto_dict   s
    üzTLMessage.to_dictN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZSIZE_OVERHEADr   r   r
   r
   r
   r   r      s   r   N)Ú r   r   r
   r
   r
   r   Ú<module>   s   