B
    fdw                 @   sx   d dl mZ d dlmZmZmZmZmZmZm	Z	m
Z
mZ d dlmZ d dlmZ d dlmZmZmZ G dd deZdS )	    )BytesIO)	IntLongInt128Int256BoolBytesStringDoubleVector)TLObject)raw)ListOptionalAnyc               @   s`   e Zd ZU dZdgZee ed< dZdZ	e
dddd	Zeeed d
ddZe
dddZdS )AcceptLoginTokenzTelegram API function.

    Details:
        - Layer: ``158``
        - ID: ``E894AD4D``

    Parameters:
        token (``bytes``):
            N/A

    Returns:
        :obj:`Authorization <pyrogram.raw.base.Authorization>`
    token	__slots__l   M-)Q zfunctions.auth.AcceptLoginTokenN)r   returnc            C   s
   || _ d S )N)r   )selfr    r   R/tmp/pip-unpacked-wheel-rcokkf2l/pyrogram/raw/functions/auth/accept_login_token.py__init__5   s    zAcceptLoginToken.__init__)bargsr   c             G   s   t | }t|dS )N)r   )r   readr   )r   r   r   r   r   r   r   8   s    
zAcceptLoginToken.read)r   c             G   s0   t  }|t| jd |t| j | S )NF)r   writer   IDr   r   getvalue)r   r   r   r   r   r   r   @   s    zAcceptLoginToken.write)__name__
__module____qualname____doc__r   r   str__annotations__r   ZQUALNAMEbytesr   staticmethodr   r   r   r   r   r   r   r   r   !   s   
r   N)ior   Zpyrogram.raw.core.primitivesr   r   r   r   r   r   r	   r
   r   Zpyrogram.raw.corer   Zpyrogramr   typingr   r   r   r   r   r   r   r   <module>   s
   ,	