o
    Xzj½@  ã                   @   s  d Z ddlmZ ddlmZ ddlmZmZmZmZ ddl	Z	ddl
Z
ddlmZ er8ddlmZmZmZmZmZ G d	d
„ d
eƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd „ d eƒZG d!d"„ d"eƒZG d#d$„ d$eƒZG d%d&„ d&eƒZ G d'd(„ d(eƒZ!G d)d*„ d*eƒZ"G d+d,„ d,eƒZ#G d-d.„ d.eƒZ$G d/d0„ d0eƒZ%G d1d2„ d2eƒZ&G d3d4„ d4eƒZ'G d5d6„ d6eƒZ(G d7d8„ d8eƒZ)G d9d:„ d:eƒZ*dS );zBFile generated by TLObjects' generator. All changes will be ERASEDé   )ÚTLObject)Ú	TLRequesté    )ÚOptionalÚListÚUnionÚTYPE_CHECKINGN)Údatetime)ÚTypeDataJSONÚTypeInputAppEventÚTypeInputPeerÚTypeInputUserÚTypeMessageEntityc                   @   s:   e Zd ZdZdZddd„Zdd„ Zd	d
„ Zedd„ ƒZ	dS )ÚAcceptTermsOfServiceRequestl   šwå\ ì   ¬gk Úidr
   c                 C   ó
   || _ dS ©z?
        :returns Bool: This type has no constructors.
        N©r   )Úselfr   © r   úU/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telethon/tl/functions/help.pyÚ__init__   ó   
z$AcceptTermsOfServiceRequest.__init__c                 C   ó&   dt | jtƒr| j ¡ dœS | jdœS )Nr   )Ú_r   )Ú
isinstancer   r   Úto_dict©r   r   r   r   r      ó
   þþz#AcceptTermsOfServiceRequest.to_dictc                 C   ó   d  d| j ¡ f¡S )Nó    s   š÷rî)Újoinr   Ú_bytesr   r   r   r   r#      ó   þz"AcceptTermsOfServiceRequest._bytesc                 C   ó   |  ¡ }| |d�S )Nr   ©Útgread_object)ÚclsÚreaderÚ_idr   r   r   Úfrom_reader#   ó   
z'AcceptTermsOfServiceRequest.from_readerN)r   r
   )
Ú__name__Ú
__module__Ú__qualname__ÚCONSTRUCTOR_IDÚSUBCLASS_OF_IDr   r   r#   Úclassmethodr+   r   r   r   r   r      s    
r   c                   @   sJ   e Zd ZdZdZdddefdd„Zdd	„ Zd
d„ Zdd„ Z	e
dd„ ƒZdS )ÚDismissSuggestionRequestl   ¡:j r   Úpeerr   Ú
suggestionc                 C   ó   || _ || _dS r   ©r4   r5   )r   r4   r5   r   r   r   r   -   ó   
z!DismissSuggestionRequest.__init__c                 Ã   ó    �|  | | j¡I d H ¡| _d S ©N©Úget_input_peerÚget_input_entityr4   ©r   ÚclientÚutilsr   r   r   Úresolve4   ó   €z DismissSuggestionRequest.resolvec                 C   s&   dt | jtƒr| j ¡ n| j| jdœS )Nr3   )r   r4   r5   )r   r4   r   r   r5   r   r   r   r   r   7   s   ýz DismissSuggestionRequest.to_dictc                 C   s   d  d| j ¡ |  | j¡f¡S )Nr!   s   ¡ºõ)r"   r4   r#   Úserialize_bytesr5   r   r   r   r   r#   >   s
   
ýzDismissSuggestionRequest._bytesc                 C   ó   |  ¡ }| ¡ }| ||d�S )Nr7   )r'   Útgread_string)r(   r)   Ú_peerÚ_suggestionr   r   r   r+   E   ó   z$DismissSuggestionRequest.from_readerN)r-   r.   r/   r0   r1   Ústrr   rA   r   r#   r2   r+   r   r   r   r   r3   )   s    r3   c                   @   sR   e Zd ZdZdZdddeded fdd	„Zd
d„ Zdd„ Z	dd„ Z
edd„ ƒZdS )ÚEditUserInfoRequestip¹féØ×S\Úuser_idr   ÚmessageÚentitiesr   c                 C   s   || _ || _|| _dS ©zU
        :returns help.UserInfo: Instance of either UserInfoEmpty, UserInfo.
        N©rL   rM   rN   )r   rL   rM   rN   r   r   r   r   P   s   
zEditUserInfoRequest.__init__c                 Ã   r9   r:   ©Úget_input_userr=   rL   r>   r   r   r   rA   X   rB   zEditUserInfoRequest.resolvec                 C   sF   dt | jtƒr| j ¡ n| j| j| jd u rg dœS dd„ | jD ƒdœS )NrJ   c                 S   ó"   g | ]}t |tƒr| ¡ n|‘qS r   ©r   r   r   ©Ú.0Úxr   r   r   Ú
<listcomp>`   ó   " z/EditUserInfoRequest.to_dict.<locals>.<listcomp>)r   rL   rM   rN   )r   rL   r   r   rM   rN   r   r   r   r   r   [   s   üüzEditUserInfoRequest.to_dictc                 C   sD   d  d| j ¡ |  | j¡dt dt| jƒ¡d  dd„ | jD ƒ¡f¡S )Nr!   s   p¹fó   Äµú<ic                 s   ó   � | ]}|  ¡ V  qd S r:   ©r#   rU   r   r   r   Ú	<genexpr>h   ó   € z-EditUserInfoRequest._bytes.<locals>.<genexpr>)	r"   rL   r#   rC   rM   ÚstructÚpackÚlenrN   r   r   r   r   r#   c   s   
&üzEditUserInfoRequest._bytesc                 C   sN   |  ¡ }| ¡ }| ¡  g }t| ¡ ƒD ]}|  ¡ }| |¡ q| |||d�S )NrP   )r'   rE   Úread_intÚrangeÚappend)r(   r)   Ú_user_idÚ_messageÚ	_entitiesr   Ú_xr   r   r   r+   k   s   zEditUserInfoRequest.from_readerN)r-   r.   r/   r0   r1   rI   r   r   rA   r   r#   r2   r+   r   r   r   r   rJ   L   s    rJ   c                   @   ó>   e Zd ZdZdZdefdd„Zdd„ Zdd	„ Ze	d
d„ ƒZ
dS )ÚGetAppConfigRequestiTøãaiš8Úhashc                 C   r   )z^
        :returns help.AppConfig: Instance of either AppConfigNotModified, AppConfig.
        N©rl   ©r   rl   r   r   r   r   |   r   zGetAppConfigRequest.__init__c                 C   ó   d| j dœS )Nrk   ©r   rl   rm   r   r   r   r   r   ‚   ó   þzGetAppConfigRequest.to_dictc                 C   ó   d  dt d| j¡f¡S )Nr!   s   Tøãar[   ©r"   r`   ra   rl   r   r   r   r   r#   ˆ   ó   þzGetAppConfigRequest._bytesc                 C   r%   ©Nrm   ©rc   ©r(   r)   Ú_hashr   r   r   r+   Ž   r,   zGetAppConfigRequest.from_readerN©r-   r.   r/   r0   r1   Úintr   r   r#   r2   r+   r   r   r   r   rk   x   ó    rk   c                   @   rj   )ÚGetAppUpdateRequesti}Z-Riž—XÚsourcec                 C   r   )zU
        :returns help.AppUpdate: Instance of either AppUpdate, NoAppUpdate.
        N©r}   )r   r}   r   r   r   r   ˜   r   zGetAppUpdateRequest.__init__c                 C   ro   )Nr|   )r   r}   r~   r   r   r   r   r   ž   rq   zGetAppUpdateRequest.to_dictc                 C   ó   d  d|  | j¡f¡S )Nr!   s   }Z-R)r"   rC   r}   r   r   r   r   r#   ¤   ó   
þzGetAppUpdateRequest._bytesc                 C   r%   )Nr~   ©rE   )r(   r)   Ú_sourcer   r   r   r+   ª   r,   zGetAppUpdateRequest.from_readerN©r-   r.   r/   r0   r1   rI   r   r   r#   r2   r+   r   r   r   r   r|   ”   r{   r|   c                   @   ó0   e Zd ZdZdZdd„ Zdd„ Zedd„ ƒZd	S )
ÚGetCdnConfigRequestiB“Rl   |9´Y c                 C   ó   ddiS )Nr   r…   r   r   r   r   r   r   ´   ó   ÿzGetCdnConfigRequest.to_dictc                 C   ó
   d  d¡S )Nr!   )s   B“R©r"   r   r   r   r   r#   ¹   ó   
zGetCdnConfigRequest._bytesc                 C   ó   | ƒ S r:   r   ©r(   r)   r   r   r   r+   ¾   ó   zGetCdnConfigRequest.from_readerN©	r-   r.   r/   r0   r1   r   r#   r2   r+   r   r   r   r   r…   °   ó    r…   c                   @   r„   )
ÚGetConfigRequestl   kò	 l   J*L& c                 C   r†   )Nr   r�   r   r   r   r   r   r   Ç   r‡   zGetConfigRequest.to_dictc                 C   rˆ   )Nr!   )s   kùÄr‰   r   r   r   r   r#   Ì   rŠ   zGetConfigRequest._bytesc                 C   r‹   r:   r   rŒ   r   r   r   r+   Ñ   r�   zGetConfigRequest.from_readerNrŽ   r   r   r   r   r�   Ã   r�   r�   c                   @   óB   e Zd ZdZdZdedefdd„Zdd„ Zd	d
„ Z	e
dd„ ƒZdS )ÚGetCountriesListRequesti¨‡Wsl   ˆ~cT Ú	lang_coderl   c                 C   r6   )zj
        :returns help.CountriesList: Instance of either CountriesListNotModified, CountriesList.
        N©r“   rl   )r   r“   rl   r   r   r   r   Ú   r8   z GetCountriesListRequest.__init__c                 C   ó   d| j | jdœS )Nr’   )r   r“   rl   r”   r   r   r   r   r   á   ó   ýzGetCountriesListRequest.to_dictc                 C   s"   d  d|  | j¡t d| j¡f¡S )Nr!   s   ¨‡Wsr[   )r"   rC   r“   r`   ra   rl   r   r   r   r   r#   è   s
   
ýzGetCountriesListRequest._bytesc                 C   rD   )Nr”   )rE   rc   )r(   r)   Ú
_lang_coderx   r   r   r   r+   ï   rH   z#GetCountriesListRequest.from_readerN)r-   r.   r/   r0   r1   rI   rz   r   r   r#   r2   r+   r   r   r   r   r’   Ö   ó    r’   c                   @   rj   )ÚGetDeepLinkInfoRequesti_Çí?l   8,•0 Úpathc                 C   r   )za
        :returns help.DeepLinkInfo: Instance of either DeepLinkInfoEmpty, DeepLinkInfo.
        N©rš   )r   rš   r   r   r   r   ú   r   zGetDeepLinkInfoRequest.__init__c                 C   ro   )Nr™   )r   rš   r›   r   r   r   r   r      rq   zGetDeepLinkInfoRequest.to_dictc                 C   r   )Nr!   s   _Çí?)r"   rC   rš   r   r   r   r   r#     r€   zGetDeepLinkInfoRequest._bytesc                 C   r%   )Nr›   r�   )r(   r)   Ú_pathr   r   r   r+     r,   z"GetDeepLinkInfoRequest.from_readerNrƒ   r   r   r   r   r™   ö   r{   r™   c                   @   r„   )
ÚGetInviteTextRequestiC#9Ml   5*á c                 C   r†   )Nr   r�   r   r   r   r   r   r     r‡   zGetInviteTextRequest.to_dictc                 C   rˆ   )Nr!   )s   C#9Mr‰   r   r   r   r   r#     rŠ   zGetInviteTextRequest._bytesc                 C   r‹   r:   r   rŒ   r   r   r   r+      r�   z GetInviteTextRequest.from_readerNrŽ   r   r   r   r   r�     r�   r�   c                   @   r„   )
ÚGetNearestDcRequesti&0³i_w8c                 C   r†   )Nr   rž   r   r   r   r   r   r   )  r‡   zGetNearestDcRequest.to_dictc                 C   rˆ   )Nr!   )s   &0³r‰   r   r   r   r   r#   .  rŠ   zGetNearestDcRequest._bytesc                 C   r‹   r:   r   rŒ   r   r   r   r+   3  r�   zGetNearestDcRequest.from_readerNrŽ   r   r   r   r   rž   %  r�   rž   c                   @   rj   )ÚGetPassportConfigRequestl   -Ã l   ­@Í rl   c                 C   r   )zm
        :returns help.PassportConfig: Instance of either PassportConfigNotModified, PassportConfig.
        Nrm   rn   r   r   r   r   <  r   z!GetPassportConfigRequest.__init__c                 C   ro   )NrŸ   rp   rm   r   r   r   r   r   B  rq   z GetPassportConfigRequest.to_dictc                 C   rr   )Nr!   s   ­aÆr[   rs   r   r   r   r   r#   H  rt   zGetPassportConfigRequest._bytesc                 C   r%   ru   rv   rw   r   r   r   r+   N  r,   z$GetPassportConfigRequest.from_readerNry   r   r   r   r   rŸ   8  r{   rŸ   c                   @   rj   )ÚGetPeerColorsRequestl   /t5 é3g?rl   c                 C   r   ©za
        :returns help.PeerColors: Instance of either PeerColorsNotModified, PeerColors.
        Nrm   rn   r   r   r   r   X  r   zGetPeerColorsRequest.__init__c                 C   ro   )Nr    rp   rm   r   r   r   r   r   ^  rq   zGetPeerColorsRequest.to_dictc                 C   rr   )Nr!   s   /ô€Úr[   rs   r   r   r   r   r#   d  rt   zGetPeerColorsRequest._bytesc                 C   r%   ru   rv   rw   r   r   r   r+   j  r,   z GetPeerColorsRequest.from_readerNry   r   r   r   r   r    T  r{   r    c                   @   rj   )ÚGetPeerProfileColorsRequestl   ý)ŸW r¡   rl   c                 C   r   r¢   rm   rn   r   r   r   r   t  r   z$GetPeerProfileColorsRequest.__init__c                 C   ro   )Nr£   rp   rm   r   r   r   r   r   z  rq   z#GetPeerProfileColorsRequest.to_dictc                 C   rr   )Nr!   s   ý©Ï«r[   rs   r   r   r   r   r#   €  rt   z"GetPeerProfileColorsRequest._bytesc                 C   r%   ru   rv   rw   r   r   r   r+   †  r,   z'GetPeerProfileColorsRequest.from_readerNry   r   r   r   r   r£   p  r{   r£   c                   @   r„   )
ÚGetPremiumPromoRequestl   Ô7p l   8# c                 C   r†   )Nr   r¤   r   r   r   r   r   r   �  r‡   zGetPremiumPromoRequest.to_dictc                 C   rˆ   )Nr!   )s   Ô“¸r‰   r   r   r   r   r#   •  rŠ   zGetPremiumPromoRequest._bytesc                 C   r‹   r:   r   rŒ   r   r   r   r+   š  r�   z"GetPremiumPromoRequest.from_readerNrŽ   r   r   r   r   r¤   Œ  r�   r¤   c                   @   r„   )
ÚGetPromoDataRequestl   !t. l   BU²: c                 C   r†   )Nr   r¥   r   r   r   r   r   r   £  r‡   zGetPromoDataRequest.to_dictc                 C   rˆ   )Nr!   )s   !t—Àr‰   r   r   r   r   r#   ¨  rŠ   zGetPromoDataRequest._bytesc                 C   r‹   r:   r   rŒ   r   r   r   r+   ­  r�   zGetPromoDataRequest.from_readerNrŽ   r   r   r   r   r¥   Ÿ  r�   r¥   c                   @   rj   )ÚGetRecentMeUrlsRequestiñÀ=l   wDÓd Úrefererc                 C   r   )zG
        :returns help.RecentMeUrls: Instance of RecentMeUrls.
        N©r§   )r   r§   r   r   r   r   ¶  r   zGetRecentMeUrlsRequest.__init__c                 C   ro   )Nr¦   )r   r§   r¨   r   r   r   r   r   ¼  rq   zGetRecentMeUrlsRequest.to_dictc                 C   r   )Nr!   s   ñÀ=)r"   rC   r§   r   r   r   r   r#   Â  r€   zGetRecentMeUrlsRequest._bytesc                 C   r%   )Nr¨   r�   )r(   r)   Ú_refererr   r   r   r+   È  r,   z"GetRecentMeUrlsRequest.from_readerNrƒ   r   r   r   r   r¦   ²  r{   r¦   c                   @   r„   )
ÚGetSupportRequestl   Í¾9 ië¼Yqc                 C   r†   )Nr   rª   r   r   r   r   r   r   Ò  r‡   zGetSupportRequest.to_dictc                 C   rˆ   )Nr!   )s   Íßœr‰   r   r   r   r   r#   ×  rŠ   zGetSupportRequest._bytesc                 C   r‹   r:   r   rŒ   r   r   r   r+   Ü  r�   zGetSupportRequest.from_readerNrŽ   r   r   r   r   rª   Î  r�   rª   c                   @   r„   )
ÚGetSupportNameRequestl   ,gÁ& iÂ·Pc                 C   r†   )Nr   r«   r   r   r   r   r   r   å  r‡   zGetSupportNameRequest.to_dictc                 C   rˆ   )Nr!   )s   ,ç`Ór‰   r   r   r   r   r#   ê  rŠ   zGetSupportNameRequest._bytesc                 C   r‹   r:   r   rŒ   r   r   r   r+   ï  r�   z!GetSupportNameRequest.from_readerNrŽ   r   r   r   r   r«   á  r�   r«   c                   @   r„   )
ÚGetTermsOfServiceUpdateRequestiÑ¥,iw)<)c                 C   r†   )Nr   r¬   r   r   r   r   r   r   ø  r‡   z&GetTermsOfServiceUpdateRequest.to_dictc                 C   rˆ   )Nr!   )s   Ñ¥,r‰   r   r   r   r   r#   ý  rŠ   z%GetTermsOfServiceUpdateRequest._bytesc                 C   r‹   r:   r   rŒ   r   r   r   r+     r�   z*GetTermsOfServiceUpdateRequest.from_readerNrŽ   r   r   r   r   r¬   ô  r�   r¬   c                   @   rj   )ÚGetTimezonesListRequesti@³Il   udí rl   c                 C   r   )zj
        :returns help.TimezonesList: Instance of either TimezonesListNotModified, TimezonesList.
        Nrm   rn   r   r   r   r     r   z GetTimezonesListRequest.__init__c                 C   ro   )Nr­   rp   rm   r   r   r   r   r     rq   zGetTimezonesListRequest.to_dictc                 C   rr   )Nr!   s   @³Ir[   rs   r   r   r   r   r#     rt   zGetTimezonesListRequest._bytesc                 C   r%   ru   rv   rw   r   r   r   r+     r,   z#GetTimezonesListRequest.from_readerNry   r   r   r   r   r­     r{   r­   c                   @   óB   e Zd ZdZdZddd„Zdd„ Zd	d
„ Zdd„ Ze	dd„ ƒZ
dS )ÚGetUserInfoRequestiÓŠrK   rL   r   c                 C   r   rO   ©rL   )r   rL   r   r   r   r   '  r   zGetUserInfoRequest.__init__c                 Ã   r9   r:   rQ   r>   r   r   r   rA   -  rB   zGetUserInfoRequest.resolvec                 C   r   )Nr¯   )r   rL   )r   rL   r   r   r   r   r   r   r   0  r   zGetUserInfoRequest.to_dictc                 C   r    )Nr!   s   ÓŠ)r"   rL   r#   r   r   r   r   r#   6  r$   zGetUserInfoRequest._bytesc                 C   r%   )Nr°   r&   )r(   r)   rf   r   r   r   r+   <  r,   zGetUserInfoRequest.from_readerN)rL   r   ©r-   r.   r/   r0   r1   r   rA   r   r#   r2   r+   r   r   r   r   r¯   #  ó    
r¯   c                   @   r®   )ÚHidePromoDataRequesti•%r   r4   r   c                 C   r   r   ©r4   )r   r4   r   r   r   r   F  r   zHidePromoDataRequest.__init__c                 Ã   r9   r:   r;   r>   r   r   r   rA   L  rB   zHidePromoDataRequest.resolvec                 C   r   )Nr³   )r   r4   )r   r4   r   r   r   r   r   r   r   O  r   zHidePromoDataRequest.to_dictc                 C   r    )Nr!   s   •%)r"   r4   r#   r   r   r   r   r#   U  r$   zHidePromoDataRequest._bytesc                 C   r%   )Nr´   r&   )r(   r)   rF   r   r   r   r+   [  r,   z HidePromoDataRequest.from_readerN)r4   r   r±   r   r   r   r   r³   B  r²   r³   c                   @   sB   e Zd ZdZdZded fdd„Zdd„ Zd	d
„ Ze	dd„ ƒZ
dS )ÚSaveAppLogRequestiH÷or   Úeventsr   c                 C   r   r   ©r¶   )r   r¶   r   r   r   r   e  r   zSaveAppLogRequest.__init__c                 C   s(   d| j d u r
g dœS dd„ | j D ƒdœS )Nrµ   c                 S   rS   r   rT   rU   r   r   r   rX   n  rY   z-SaveAppLogRequest.to_dict.<locals>.<listcomp>)r   r¶   r·   r   r   r   r   r   k  s
   þþzSaveAppLogRequest.to_dictc              	   C   s2   d  ddt dt| jƒ¡d  dd„ | jD ƒ¡f¡S )Nr!   s   H÷orZ   r[   c                 s   r\   r:   r]   rU   r   r   r   r^   t  r_   z+SaveAppLogRequest._bytes.<locals>.<genexpr>)r"   r`   ra   rb   r¶   r   r   r   r   r#   q  s   &þzSaveAppLogRequest._bytesc                 C   s:   |  ¡  g }t|  ¡ ƒD ]}| ¡ }| |¡ q| |d�S )Nr·   )rc   rd   r'   re   )r(   r)   Ú_eventsr   ri   r   r   r   r+   w  s   
zSaveAppLogRequest.from_readerN)r-   r.   r/   r0   r1   r   r   r   r#   r2   r+   r   r   r   r   rµ   a  s    rµ   c                   @   r‘   )ÚSetBotUpdatesStatusRequestl   ÍOEX r   Úpending_updates_countrM   c                 C   r6   r   ©rº   rM   )r   rº   rM   r   r   r   r   †  r8   z#SetBotUpdatesStatusRequest.__init__c                 C   r•   )Nr¹   )r   rº   rM   r»   r   r   r   r   r   �  r–   z"SetBotUpdatesStatusRequest.to_dictc                 C   s"   d  dt d| j¡|  | j¡f¡S )Nr!   s   ÍÏ"ìr[   )r"   r`   ra   rº   rC   rM   r   r   r   r   r#   ”  s
   
ýz!SetBotUpdatesStatusRequest._bytesc                 C   rD   )Nr»   )rc   rE   )r(   r)   Ú_pending_updates_countrg   r   r   r   r+   ›  rH   z&SetBotUpdatesStatusRequest.from_readerN)r-   r.   r/   r0   r1   rz   rI   r   r   r#   r2   r+   r   r   r   r   r¹   ‚  r˜   r¹   )+Ú__doc__Útl.tlobjectr   r   Útypingr   r   r   r   Úosr`   r	   Útl.typesr
   r   r   r   r   r   r3   rJ   rk   r|   r…   r�   r’   r™   r�   rž   rŸ   r    r£   r¤   r¥   r¦   rª   r«   r¬   r­   r¯   r³   rµ   r¹   r   r   r   r   Ú<module>   sD    #, !