
    <Si                    n   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rVddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5  G d	 d
e      Z6 G d de      Z7 G d de      Z8 G d de      Z9 G d de      Z: G d de      Z; G d de      Z< G d de      Z= G d de      Z> G d de      Z? G d de      Z@ G d d e      ZA G d! d"e      ZB G d# d$e      ZC G d% d&e      ZD G d' d(e      ZE G d) d*e      ZF G d+ d,e      ZG G d- d.e      ZH G d/ d0e      ZI G d1 d2e      ZJ G d3 d4e      ZK G d5 d6e      ZL G d7 d8e      ZM G d9 d:e      ZN G d; d<e      ZO G d= d>e      ZP G d? d@e      ZQ G dA dBe      ZR G dC dDe      ZS G dE dFe      ZT G dG dHe      ZU G dI dJe      ZV G dK dLe      ZW G dM dNe      ZX G dO dPe      ZY G dQ dRe      ZZ G dS dTe      Z[ G dU dVe      Z\ G dW dXe      Z] G dY dZe      Z^ G d[ d\e      Z_ G d] d^e      Z` G d_ d`e      Za G da dbe      Zb G dc dde      Zc G de dfe      Zd G dg dhe      Ze G di dje      Zf G dk dle      Zg G dm dne      Zh G do dpe      Zi G dq dre      Zj G ds dte      Zk G du dve      Zl G dw dxe      Zm G dy dze      Zn G d{ d|e      Zo G d} d~e      Zp G d de      Zq G d de      Zr G d de      Zs G d de      Zt G d de      Zu G d de      Zv G d de      Zw G d de      Zx G d de      Zy G d de      Zz G d de      Z{ G d de      Z| G d de      Z} G d de      Z~ G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G dÄ de      Z G dń de      Z G dǄ de      Z G dɄ de      Z G d˄ de      Z G d̈́ de      Z G dτ de      Z G dф de      Z G dӄ de      Z G dՄ de      Z G dׄ de      Z G dل de      Z G dۄ de      Z G d݄ de      Z G d߄ de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d d e      Z G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d d e      Z G d! d"e      Z G d# d$e      Z G d% d&e      Z G d' d(e      Z G d) d*e      Z G d+ d,e      Z G d- d.e      Z G d/ d0e      Z G d1 d2e      Z G d3 d4e      Z G d5 d6e      Z G d7 d8e      Z G d9 d:e      Z G d; d<e      Z G d= d>e      Z G d? d@e      Z G dA dBe      Z G dC dDe      Z G dE dFe      Z G dG dHe      Z G dI dJe      Z G dK dLe      Z G dM dNe      Z G dO dPe      Z G dQ dRe      Z G dS dTe      Z G dU dVe      Z G dW dXe      Z G dY dZe      Z G d[ d\e      Z G d] d^e      Z G d_ d`e      Z G da dbe      Z G dc dde      Z G de dfe      Z G dg dhe      Z G di dje      Z G dk dle      Z G dm dne      Z G do dpe      Z G dq dre      Z G ds dte      Z G du dve      Z G dw dxe      Z G dy dze      Z G d{ d|e      Z G d} d~e      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z  G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z	 G d de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G dÄ de      Z G dń de      Z G dǄ de      Z G dɄ de      Z G d˄ de      Z G d̈́ de      Z G dτ de      Z G dф de      Z G dӄ de      Z G dՄ de      Z G dׄ de      Z G dل de      Z G dۄ de      Z G d݄ de      Z  G d߄ de      Z! G d de      Z"y(  zBFile generated by TLObjects' generator. All changes will be ERASED   )TLObject)	TLRequest    )OptionalListUnionTYPE_CHECKINGN)datetime))TypeChatBannedRightsTypeChatReactionsTypeDataJSONTypeDialogFilterTypeInlineBotSwitchPMTypeInlineBotWebViewTypeInlineQueryPeerTypeTypeInputBotAppTypeInputBotInlineMessageIDTypeInputBotInlineResultTypeInputChatPhotoTypeInputChatThemeTypeInputCheckPasswordSRPTypeInputDialogPeerTypeInputDocumentTypeInputEncryptedChatTypeInputEncryptedFileTypeInputFileTypeInputGeoPointTypeInputMediaTypeInputMessageTypeInputPeerTypeInputQuickReplyShortcutTypeInputReplyToTypeInputSingleMediaTypeInputStickerSetTypeInputStickeredMediaTypeInputUserTypeInputWallPaperTypeMessageEntityTypeMessagesFilterTypePaidReactionPrivacyTypeReactionTypeReplyMarkupTypeSendMessageActionTypeShippingOptionTypeStarsSubscriptionPricingTypeSuggestedPostTypeTextWithEntitiesTypeTodoItemTypeWallPaperSettingsc                   D    e Zd ZdZdZdddedefdZd Zd	 Z	e
d
        Zy)AcceptEncryptionRequesti=z(mpeerr   g_bkey_fingerprintc                 .    || _         || _        || _        y)
        :returns EncryptedChat: Instance of either EncryptedChatEmpty, EncryptedChatWaiting, EncryptedChatRequested, EncryptedChat, EncryptedChatDiscarded.
        Nr7   r8   r9   )selfr7   r8   r9   s       c/var/www/OnlineNewsSite/project/venv/lib/python3.12/site-packages/telethon/tl/functions/messages.py__init__z AcceptEncryptionRequest.__init__   s     	.    c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )Nr5   )_r7   r8   r9   )
isinstancer7   r   to_dictr8   r9   r=   s    r>   rD   zAcceptEncryptionRequest.to_dict   sE    *+5dii+JDII%%'PTPYPY88#33	
 	
r@   c           	          dj                  d| j                  j                         | j                  | j                        t        j                  d| j                        f      S )Nr@   s   =<q)joinr7   _bytesserialize_bytesr8   structpackr9   rE   s    r>   rI   zAcceptEncryptionRequest._bytes!   sQ    xxII  *KKd223	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr<   )tgread_objecttgread_bytes	read_long)clsreader_peer_g_b_key_fingerprints        r>   from_readerz#AcceptEncryptionRequest.from_reader)   s=    $$&""$!++-49IJJr@   N__name__
__module____qualname__CONSTRUCTOR_IDSUBCLASS_OF_IDbytesintr?   rD   rI   classmethodrV    r@   r>   r5   r5      sH    NN/5 /E /TW /
 K Kr@   r5   c                   r    e Zd ZdZdZddee   ded   dee   dee   d	ee   f
d
Z	d Z
d Zd Zed        Zy)AcceptUrlAuthRequestl   %qXb ewNwrite_allowedr7   r    msg_id	button_idurlc                 J    || _         || _        || _        || _        || _        yz
        :returns UrlAuthResult: Instance of either UrlAuthResultRequest, UrlAuthResultAccepted, UrlAuthResultDefault.
        Nrd   r7   re   rf   rg   )r=   rd   r7   re   rf   rg   s         r>   r?   zAcceptUrlAuthRequest.__init__5   s(     +	"r@   c                    K   | j                   r8|j                  |j                  | j                          d {         | _         y y 7 wNr7   get_input_peerget_input_entityr=   clientutilss      r>   resolvezAcceptUrlAuthRequest.resolve?   9     99,,63J3J4993U-UVDI -U   6A
AA
c                     d| j                   t        | j                  t              r| j                  j	                         n| j                  | j
                  | j                  | j                  dS )Nrb   )rB   rd   r7   re   rf   rg   )rd   rC   r7   r   rD   re   rf   rg   rE   s    r>   rD   zAcceptUrlAuthRequest.to_dictC   sS    '!//+5dii+JDII%%'PTPYPYkk88
 	
r@   c           
         | j                   s| j                   0| j                  s| j                  | j                  sa| j                  U| j                   | j                   du r4| j                  | j                  du r| j                  | j                  du sJ d       dj                  dt	        j
                  d| j                  | j                  du rdnd| j                   | j                   du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdnd	z        | j                   | j                   du rdn| j                   j                         | j                  | j                  du rdnt	        j
                  d
| j                        | j                  | j                  du rdnt	        j
                  d
| j                        | j                  | j                  du rdf      S | j                  | j                        f      S )NFSpeer, msg_id, button_id parameters must all be False-y (like None) or all me True-yr@   s   %q,<Ir            <i)
r7   re   rf   rH   rK   rL   rd   rg   rI   rJ   rE   s    r>   rI   zAcceptUrlAuthRequest._bytesM   sS   dii3$++I`gkguguy}  zH  zH  zT  \`  \e  \e  \m  qu  qz  qz  ~C  qC  JN  JU  JU  J]  ae  al  al  pu  au  |@  |J  |J  |R  VZ  Vd  Vd  hm  Vm  	F  qF  	F  oxxKKD$6$6$>$BTBTX]B]qcdnrnwnwn  DH  DM  DM  QV  DVij  \]  ^  gk  gr  gr  gz  ~B  ~I  ~I  MR  ~R  bc  XY  Z  cg  cq  cq  cy  }A  }K  }K  OT  }T  ^_  Z[  \  ei  em  em  eu  y}  yA  yA  EJ  yJ  `a  PQ  R  S99$		U(:CAQAQAS;;&$++*>CV[[QUW[WbWbEc>>)T^^u-DC6;;W[]a]k]kKl88#txx5'8C
  	 @D?S?STXT\T\?]
  	r@   c                    |j                         }t        |dz        }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd } | |||||      S )Nrz   r{   r|   rj   read_intboolrN   tgread_string)rQ   rR   flags_write_allowedrS   _msg_id
_button_id_urls           r>   rV   z AcceptUrlAuthRequest.from_readerX   s    !eai19((*EE19oo'GG19*JJ19'')DDeGWagkllr@   NNNNN)rX   rY   rZ   r[   r\   r   r   r^   strr?   rs   rD   rI   r_   rV   r`   r@   r>   rb   rb   1   s    NNhtn /AZ iqruiv   IQ  RU  IV   bj  kn  bo W
	 m mr@   rb   c                   J    e Zd ZdZdZdedddefdZd Zd	 Zd
 Z	e
d        Zy)AddChatUserRequestl   Q 顐=chat_iduser_idr&   	fwd_limitc                 .    || _         || _        || _        yzK
        :returns messages.InvitedUsers: Instance of InvitedUsers.
        Nr   r   r   )r=   r   r   r   s       r>   r?   zAddChatUserRequest.__init__t   s     "r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   get_input_userro   r   rp   s      r>   rs   zAddChatUserRequest.resolve|   -     ++&2I2I$,,2W,WX,W   *=;=c                     d| j                   t        | j                  t              r| j                  j	                         n| j                  | j
                  dS )Nr   )rB   r   r   r   )r   rC   r   r   rD   r   rE   s    r>   rD   zAddChatUserRequest.to_dict   sC    %||1;DLL(1St||++-Y]YeYe	
 	
r@   c           	          dj                  dt        j                  d| j                        | j                  j                         t        j                  d| j                        f      S )Nr@   s   rG   r}   )rH   rK   rL   r   r   rI   r   rE   s    r>   rI   zAddChatUserRequest._bytes   sO    xxKKdll+LL!KKdnn-	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr   )rP   rN   r   )rQ   rR   _chat_id_user_id
_fwd_limits        r>   rV   zAddChatUserRequest.from_reader   s9    ##%'')__&
8XLLr@   NrX   rY   rZ   r[   r\   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r   r   p   sL    NN# #o ## #Y
 M Mr@   r   c                   P    e Zd ZdZdZdddeded   fdZd	 Zd
 Z	d Z
ed        Zy)AppendTodoListRequestiW!   * r7   r    re   listr2   c                 .    || _         || _        || _        y
        :returns Updates: Instance of either UpdatesTooLong, UpdateShortMessage, UpdateShortChatMessage, UpdateShort, UpdatesCombined, Updates, UpdateShortSentMessage.
        Nr7   re   r   )r=   r7   re   r   s       r>   r?   zAppendTodoListRequest.__init__        		r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   rn   ro   r7   rp   s      r>   rs   zAppendTodoListRequest.resolve   -     ((v/F/Ftyy/Q)QR	)Qr   c           
      :   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  g dS | j
                  D cg c]$  }t        |t              r|j                         n|& c}dS c c}w )Nr   )rB   r7   re   r   )rC   r7   r   rD   re   r   r=   xs     r>   rD   zAppendTodoListRequest.to_dict   s    (+5dii+JDII%%'PTPYPYkk))+B	
 	
 jnirir1sdeAxAX!))+^_2_1s	
 	
 2ts   *)B
c                 *   dj                  d| j                  j                         t        j                  d| j
                        dt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   W!r}      ĵc              3   <   K   | ]  }|j                           y wrl   rI   .0r   s     r>   	<genexpr>z/AppendTodoListRequest._bytes.<locals>.<genexpr>   s     JiZ[188:Ji   )rH   r7   rI   rK   rL   re   lenr   rE   s    r>   rI   zAppendTodoListRequest._bytes   sm    xxIIKKdkk*D#dii. A#((Ji_c_h_hJiBi	
  	r@   c                     |j                         }|j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |||      S )Nr   rN   r   rangeappend)rQ   rR   rS   r   _listrB   _xs          r>   rV   z!AppendTodoListRequest.from_reader   sq    $$&//#v() 	A%%'BLL	 gE::r@   NrX   rY   rZ   r[   r\   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r   r      sO    NN_ c nAU S
 	; 	;r@   r   c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	CheckChatInviteRequesti>i6Vhashc                     || _         y)zh
        :returns ChatInvite: Instance of either ChatInviteAlready, ChatInvite, ChatInvitePeek.
        Nr   r=   r   s     r>   r?   zCheckChatInviteRequest.__init__        	r@   c                      d| j                   dS )Nr   rB   r   r   rE   s    r>   rD   zCheckChatInviteRequest.to_dict       )II
 	
r@   c                 Z    dj                  d| j                  | j                        f      S )Nr@   s   >rH   rJ   r   rE   s    r>   rI   zCheckChatInviteRequest._bytes   s-    xx  +
  	r@   c                 4    |j                         } | |      S Nr   r   rQ   rR   _hashs      r>   rV   z"CheckChatInviteRequest.from_reader       $$&r@   NrX   rY   rZ   r[   r\   r   r?   rD   rI   r_   rV   r`   r@   r>   r   r      s6    NNS 
  r@   r   c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	CheckHistoryImportRequestiCir[import_headc                     || _         y)zY
        :returns messages.HistoryImportParsed: Instance of HistoryImportParsed.
        Nr   )r=   r   s     r>   r?   z"CheckHistoryImportRequest.__init__        'r@   c                      d| j                   dS )Nr   )rB   r   r   rE   s    r>   rD   z!CheckHistoryImportRequest.to_dict   s    ,++
 	
r@   c                 Z    dj                  d| j                  | j                        f      S )Nr@   s   C)rH   rJ   r   rE   s    r>   rI   z CheckHistoryImportRequest._bytes   s/    xx  !1!12
  	r@   c                 4    |j                         } | |      S )Nr   r   )rQ   rR   _import_heads      r>   rV   z%CheckHistoryImportRequest.from_reader   s    ++-|,,r@   Nr   r`   r@   r>   r   r      6    NN'C '
 - -r@   r   c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
CheckHistoryImportPeerRequesti]l   73p c                     || _         y)zc
        :returns messages.CheckedHistoryImportPeer: Instance of CheckedHistoryImportPeer.
        Nr7   r=   r7   s     r>   r?   z&CheckHistoryImportPeerRequest.__init__   r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z%CheckHistoryImportPeerRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nr   rB   r7   rC   r7   r   rD   rE   s    r>   rD   z%CheckHistoryImportPeerRequest.to_dict  s?    0+5dii+JDII%%'
 	
PTPYPY
 	
r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   ]rH   r7   rI   rE   s    r>   rI   z$CheckHistoryImportPeerRequest._bytes  +    xxII
  	r@   c                 4    |j                         } | |      S Nr   rN   rQ   rR   rS   s      r>   rV   z)CheckHistoryImportPeerRequest.from_reader  r   r@   Nr7   r    rX   rY   rZ   r[   r\   r?   rs   rD   rI   r_   rV   r`   r@   r>   r   r      5    NNS
  r@   r   c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	CheckQuickReplyShortcutRequestl   {c    gk shortcutc                     || _         y?
        :returns Bool: This type has no constructors.
        Nr   )r=   r   s     r>   r?   z'CheckQuickReplyShortcutRequest.__init__       !r@   c                      d| j                   dS )Nr   )rB   r   r   rE   s    r>   rD   z&CheckQuickReplyShortcutRequest.to_dict$  s    1
 	
r@   c                 Z    dj                  d| j                  | j                        f      S )Nr@   s   )rH   rJ   r   rE   s    r>   rI   z%CheckQuickReplyShortcutRequest._bytes*  s-    xx  /
  	r@   c                 4    |j                         } | |      S )Nr   r   )rQ   rR   	_shortcuts      r>   rV   z*CheckQuickReplyShortcutRequest.from_reader0      ((*	I&&r@   Nr   r`   r@   r>   r   r     s6    NN! !
 ' 'r@   r   c                   0    e Zd ZdZdZd Zd Zed        Zy)ClearAllDraftsRequestiX~r   c                 
    ddiS )NrB   r   r`   rE   s    r>   rD   zClearAllDraftsRequest.to_dict:      (
 	
r@   c                 $    dj                  d      S )Nr@   )s   X~rH   rE   s    r>   rI   zClearAllDraftsRequest._bytes?      xx 
  	r@   c                      |        S rl   r`   rQ   rR   s     r>   rV   z!ClearAllDraftsRequest.from_readerD  	    ur@   N	rX   rY   rZ   r[   r\   rD   rI   r_   rV   r`   r@   r>   r   r   6  *    NN


  r@   r   c                   0    e Zd ZdZdZd Zd Zed        Zy)ClearRecentReactionsRequestl   o; r   c                 
    ddiS )NrB   r
  r`   rE   s    r>   rD   z#ClearRecentReactionsRequest.to_dictM      .
 	
r@   c                 $    dj                  d      S )Nr@   )s   r  rE   s    r>   rI   z"ClearRecentReactionsRequest._bytesR  r  r@   c                      |        S rl   r`   r  s     r>   rV   z'ClearRecentReactionsRequest.from_readerW  r  r@   Nr  r`   r@   r>   r
  r
  I  r  r@   r
  c                   D    e Zd ZdZdZd	dee   fdZd Zd Z	e
d        Zy)
ClearRecentStickersRequestl   -`2 r   Nattachedc                     || _         yr   r  )r=   r  s     r>   r?   z#ClearRecentStickersRequest.__init__`  r   r@   c                      d| j                   dS )Nr  )rB   r  r  rE   s    r>   rD   z"ClearRecentStickersRequest.to_dictf  s    -
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rd      f      S d      f      S )Nr@   s   -`ry   Fr   rz   )rH   rK   rL   r  rE   s    r>   rI   z!ClearRecentStickersRequest._bytesl  sR    xxKKDMM$9T]]e=Sq\
  	YZ\
  	r@   c                 P    |j                         }t        |dz        } | |      S )Nrz   r  r   r   )rQ   rR   r   	_attacheds       r>   rV   z&ClearRecentStickersRequest.from_readerr  s&    !O	I&&r@   rl   rX   rY   rZ   r[   r\   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r  r  \  s:    NN!$ !
 ' 'r@   r  c                   R    e Zd ZdZdZddee   dee   defdZd Z	d	 Z
ed
        Zy)ClickSponsoredMessageRequestl   ~j r   Nmedia
fullscreen	random_idc                     || _         || _        ||| _        yt        j                  t	        j
                  d      dd      | _        yr   Nr|   bigTsigned)r  r  r^   
from_bytesosurandomr  )r=   r  r  r  s       r>   r?   z%ClickSponsoredMessageRequest.__init__~  sB     
$&/&;PRPZPZ[\P]_dmqArr@   c                 L    d| j                   | j                  | j                  dS )Nr  )rB   r  r  r  r  r  r  rE   s    r>   rD   z$ClickSponsoredMessageRequest.to_dict  s$    /ZZ//	
 	
r@   c           	          dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j                  | j                        f      S )Nr@   s   ~5ry   Fr   rz   r{   )rH   rK   rL   r  r  rJ   r  rE   s    r>   rI   z#ClickSponsoredMessageRequest._bytes  s    xxKKDJJ$6$**:MqST^b^m^m^uy}  zI  zI  MR  zRYZ  XY  Z  [  0
  	r@   c                     |j                         }t        |dz        }t        |dz        }|j                         } | |||      S )Nrz   r{   r(  )r   r   rO   )rQ   rR   r   _media_fullscreen
_random_ids         r>   rV   z(ClickSponsoredMessageRequest.from_reader  sE    !eai519o((*
K:NNr@   NNN)rX   rY   rZ   r[   r\   r   r   r]   r?   rD   rI   r_   rV   r`   r@   r>   r  r  z  sS    NNshtn sx~ s_d s
 O Or@   r  c                   X    e Zd ZdZdZdded   dedee   fdZ	d	 Z
d
 Zd Zed        Zy)CreateChatRequestl   ]% r   Nusersr&   title
ttl_periodc                 .    || _         || _        || _        yr   r1  r2  r3  )r=   r1  r2  r3  s       r>   r?   zCreateChatRequest.__init__  s     

$r@   c                    K   g }| j                   D ]9  }|j                  |j                  |j                  |       d {                ; || _         y 7 wrl   )r1  r   r   ro   r=   rq   rr   _tmpr   s        r>   rs   zCreateChatRequest.resolve  sT     ** 	QBKK,,63J3J23N-NOP	Q 
 .Os   <AAAc                     d| j                   g n9| j                   D cg c]$  }t        |t              r|j                         n|& c}| j                  | j
                  dS c c}w )Nr0  )rB   r1  r2  r3  )r1  rC   r   rD   r2  r3  r   s     r>   rD   zCreateChatRequest.to_dict  sW    $::-Rkokuku3vfg:aQYCZAIIK`a4a3vZZ//	
 	
3vs   )A"c                    dj                  dt        j                  d| j                  | j                  du rdnd      dt        j                  dt	        | j
                              dj                  d	 | j
                  D              | j                  | j                        | j                  | j                  du rdf      S t        j                  d| j                        f      S )
Nr@   s   Βry   Fr   rz   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z+CreateChatRequest._bytes.<locals>.<genexpr>       Kk[\AHHJKkr   )rH   rK   rL   r3  r   r1  rJ   r2  rE   s    r>   rI   zCreateChatRequest._bytes  s    xxKKDOO$;tRW?Wq]^`D#djj/ B388Kk`d`j`jKkCk  ,??*doo.FC
  	
 NT[[Y]_c_n_nMo
  	r@   c                 *   |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % |j	                         }|dz  r|j                         }nd } | |||      S )Nrz   r5  )r   r   rN   r   r   )rQ   rR   r   _usersrB   r   _title_ttl_periods           r>   rV   zCreateChatRequest.from_reader  s    !v() 	A%%'BMM"	 %%'19 //+KKv+FFr@   rl   )rX   rY   rZ   r[   r\   r   r   r   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r0  r0    sU    NN%d?3 %C %XVY] %
 G Gr@   r0  c                   t    e Zd ZdZdZddddedee   dee   d	ee   d
eded   fdZ	d Z
d Zd Zed        Zy)CreateForumTopicRequestiØ/r   Nr7   r    r2  title_missing
icon_coloricon_emoji_idr  send_asc                     || _         || _        || _        || _        || _        ||n*t
        j                  t        j                  d      dd      | _	        || _
        yr   N   r!  Tr"  )r7   r2  rC  rD  rE  r^   r$  r%  r&  r  rF  )r=   r7   r2  rC  rD  rE  r  rF  s           r>   r?   z CreateForumTopicRequest.__init__  s\     	
*$*&/&;PRPZPZ[\P]_dmqArr@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   rn   ro   r7   rF  rp   s      r>   rs   zCreateForumTopicRequest.resolve  d     ((v/F/Ftyy/Q)QR	<< //f6M6Mdll6[0[\DL  *R0["   *BA?AB/B0BBc                 x   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         dS | j                  dS )NrB  )rB   r7   r2  rC  rD  rE  r  rF  )
rC   r7   r   rD   r2  rC  rD  rE  r  rF  rE   s    r>   rD   zCreateForumTopicRequest.to_dict  s    *+5dii+JDII%%'PTPYPYZZ!////!//1;DLL(1St||++-	
 		
 Z^YeYe	
 		
r@   c                 F   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z        | j                  j                         | j                  | j                        | j                  | j                  du rdnt        j                  d
| j                        | j
                  | j
                  du rdnt        j                  d| j
                        t        j                  d| j                        | j                  | j                  du rdf      S | j                  j                         f      S )Nr@   s   Ø/ry   Fr      rz   rI  r|   r}   rG   )rH   rK   rL   rC  rD  rE  rF  r7   rI   rJ   r2  r  rE   s    r>   rI   zCreateForumTopicRequest._bytes  s   xxKKD$6$6$>$BTBTX]B]qceoso~o~  pG  KO  KZ  KZ  ^c  Kcjk  ij  k  tx  tF  tF  tN  RV  Rd  Rd  hm  Rm  op  st  u  ~B  ~J  ~J  ~R  VZ  Vb  Vb  fk  Vk  yz  qr  s  tII  ,??*doo.FCV[[Y]_c_n_nMo%%-1C1Cu1LCSYS^S^_ceiewewSxKKdnn-<<'4<<5+@C	
 	 		 HL||GZGZG\	
 	 		r@   c           	      L   |j                         }t        |dz        }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j	                         }nd }|j	                         }|dz  r|j                         }	nd }	 | |||||||	      S )NrP  rz   rI  r|   )r7   r2  rC  rD  rE  r  rF  )r   r   rN   r   rP   )
rQ   rR   r   _title_missingrS   r?  _icon_color_icon_emoji_idr-  _send_ass
             r>   rV   z#CreateForumTopicRequest.from_reader  s    !ebj)$$&%%'19 //+KK19#--/N!N%%'
19++-HHV>Vaq  LV  `h  i  	ir@   r   )rX   rY   rZ   r[   r\   r   r   r   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   rB  rB    s    NN
_ 
S 
RV 
jrsvjw 
  NV  WZ  N[ 
  mp 
  @H  IX  @Y 
]



 i ir@   rB  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	DeleteChatRequestiP[r   r   c                     || _         yr   r   r=   r   s     r>   r?   zDeleteChatRequest.__init__       r@   c                      d| j                   dS )NrW  rB   r   rY  rE   s    r>   rD   zDeleteChatRequest.to_dict#  s    $||
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   P[rG   rH   rK   rL   r   rE   s    r>   rI   zDeleteChatRequest._bytes)  -    xxKKdll+
  	r@   c                 4    |j                         } | |      S NrY  rP   rQ   rR   r   s      r>   rV   zDeleteChatRequest.from_reader/      ##%8$$r@   NrX   rY   rZ   r[   r\   r^   r?   rD   rI   r_   rV   r`   r@   r>   rW  rW    6    NN 
 % %r@   rW  c                   R    e Zd ZdZdZddedddee   fdZd	 Z	d
 Z
d Zed        Zy)DeleteChatUserRequestl   \0D r   Nr   r   r&   revoke_historyc                 .    || _         || _        || _        yr   r   r   rj  )r=   r   r   rj  s       r>   r?   zDeleteChatUserRequest.__init__9  s     ,r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zDeleteChatUserRequest.resolveA  r   r   c                     d| j                   t        | j                  t              r| j                  j	                         n| j                  | j
                  dS )Nri  )rB   r   r   rj  )r   rC   r   r   rD   rj  rE   s    r>   rD   zDeleteChatUserRequest.to_dictD  sE    (||1;DLL(1St||++-Y]YeYe"11	
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      t        j                  d| j                        | j
                  j                         f      S )Nr@   s   \ry   Fr   rz   rG   )rH   rK   rL   rj  r   r   rI   rE   s    r>   rI   zDeleteChatUserRequest._bytesL  sg    xxKKD$7$7$?4CVCVZ_C_qefhKKdll+LL!	
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         } | |||      S )Nrz   rl  )r   r   rP   rN   )rQ   rR   r   _revoke_historyr   r   s         r>   rV   z!DeleteChatUserRequest.from_readerT  sF    !uqy/##%'')8XoVVr@   rl   rX   rY   rZ   r[   r\   r^   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   ri  ri  5  sQ    NN- -o -xX\~ -Y
 W Wr@   ri  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)DeleteExportedChatInviteRequestl   +$( r   r7   r    linkc                      || _         || _        yr   r7   ru  r=   r7   ru  s      r>   r?   z(DeleteExportedChatInviteRequest.__init__b       		r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z'DeleteExportedChatInviteRequest.resolvei  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nrt  rB   r7   ru  rC   r7   r   rD   ru  rE   s    r>   rD   z'DeleteExportedChatInviteRequest.to_dictl  s<    2+5dii+JDII%%'PTPYPYII
 	
r@   c                     dj                  d| j                  j                         | j                  | j                        f      S )Nr@   s   +dԩrH   r7   rI   rJ   ru  rE   s    r>   rI   z&DeleteExportedChatInviteRequest._bytess  s=    xxII  +
  	r@   c                 V    |j                         }|j                         } | ||      S Nrw  rN   r   rQ   rR   rS   _links       r>   rV   z+DeleteExportedChatInviteRequest.from_readerz  +    $$&$$&E**r@   NrX   rY   rZ   r[   r\   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   rt  rt  ^  C    NN_ C S
 + +r@   rt  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)DeleteFactCheckRequestl   # r   r7   r    re   c                      || _         || _        yr   r7   re   r=   r7   re   s      r>   r?   zDeleteFactCheckRequest.__init__       	r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zDeleteFactCheckRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  rB   r7   re   rC   r7   r   rD   re   rE   s    r>   rD   zDeleteFactCheckRequest.to_dict  <    )+5dii+JDII%%'PTPYPYkk
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   r}   rH   r7   rI   rK   rL   re   rE   s    r>   rI   zDeleteFactCheckRequest._bytes  s=    xxIIKKdkk*
  	r@   c                 V    |j                         }|j                         } | ||      S Nr  rN   r   rQ   rR   rS   r   s       r>   rV   z"DeleteFactCheckRequest.from_reader  )    $$&//#g..r@   Nr   r`   r@   r>   r  r    C    NN_ c S
 / /r@   r  c                   p    e Zd ZdZdZddddedee   dee   d	ee   d
ee   fdZ	d Z
d Zd Zed        Zy)DeleteHistoryRequestl   *a I,Nr7   r    max_id
just_clearrevokemin_datemax_datec                 X    || _         || _        || _        || _        || _        || _        yzQ
        :returns messages.AffectedHistory: Instance of AffectedHistory.
        Nr7   r  r  r  r  r  )r=   r7   r  r  r  r  r  s          r>   r?   zDeleteHistoryRequest.__init__  s.     	$  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zDeleteHistoryRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  dS )Nr  )rB   r7   r  r  r  r  r  )	rC   r7   r   rD   r  r  r  r  r  rE   s    r>   rD   zDeleteHistoryRequest.to_dict  sX    '+5dii+JDII%%'PTPYPYkk//kk
 	
r@   c           
         dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z        | j                  j                         t        j                  d
| j                        | j
                  | j
                  du rdn| j                  | j
                        | j                  | j                  du rdf      S | j                  | j                        f      S )Nr@   s   *ry   Fr   rz   r{   r|   rI  r}   )rH   rK   rL   r  r  r  r  r7   rI   r  serialize_datetimerE   s    r>   rI   zDeleteHistoryRequest._bytes  s   xxKKDOO$;tRW?Wq]^hlhshsh{  @D  @K  @K  OT  @Tcd  Z[  \  ei  er  er  ez  ~B  ~K  ~K  OT  ~T  `a  Z[  \  ei  er  er  ez  ~B  ~K  ~K  OT  ~T  `a  Z[  \  ]IIKKdkk*==(DMMU,BCI`I`aeananIo==(DMMU,BC
  	 JNI`I`aeananIo
  	r@   c                    |j                         }t        |dz        }t        |dz        }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd } | ||||||      S )Nrz   r{   r|   rI  r  )r   r   rN   tgread_date)	rQ   rR   r   _just_clear_revokerS   _max_id	_min_date	_max_dates	            r>   rV   z DeleteHistoryRequest.from_reader  s    !519ouqy/$$&//#19**,II19**,IIg+g`it}~~r@   NNNN)rX   rY   rZ   r[   r\   r^   r   r   r
   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    s    NN	!_ 	!c 	!xPT~ 	!dlmqdr 	!  DL  MU  DV 	!  go  px  gy 	!S	
  r@   r  c                   N    e Zd ZdZdZd
dee   dee   fdZ	d Z
d Zed	        Zy)DeleteMessagesRequestl   K    n@ Nidr  c                      || _         || _        yzS
        :returns messages.AffectedMessages: Instance of AffectedMessages.
        Nr  r  )r=   r  r  s      r>   r?   zDeleteMessagesRequest.__init__       r@   c                 X    d| j                   g n| j                   d d  | j                  dS )Nr  )rB   r  r  r  rE   s    r>   rD   zDeleteMessagesRequest.to_dict  s+    ("TWWQZkk
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd      dt        j                  dt	        | j
                              dj                  d	 | j
                  D              f      S )
Nr@   s   ҕry   Fr   rz   r   r}   c              3   H   K   | ]  }t        j                  d |        ywr}   NrK   rL   r   s     r>   r   z/DeleteMessagesRequest._bytes.<locals>.<genexpr>       HobcUY[\I]Ho    ")rH   rK   rL   r  r   r  rE   s    r>   rI   zDeleteMessagesRequest._bytes  sp    xxKKDKK$74;;%;OqUVXD#dgg, ?HogkgngnHo@o
  	r@   c                     |j                         }t        |dz        }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S )Nrz   r  )r   r   r   r   )rQ   rR   r   r  _idrB   r   s          r>   rV   z!DeleteMessagesRequest.from_reader  sk    !uqy/v() 	A"BJJrN	 c'**r@   rl   rX   rY   rZ   r[   r\   r   r^   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r  r    sE    NN49 htn 
 
+ 
+r@   r  c                   D    e Zd ZdZdZd	dee   fdZd Zd Z	e
d        Zy)
DeletePhoneCallHistoryRequestl   	ds l   .e.p Nr  c                     || _         y)z]
        :returns messages.AffectedFoundMessages: Instance of AffectedFoundMessages.
        Nr  )r=   r  s     r>   r?   z&DeletePhoneCallHistoryRequest.__init__	       r@   c                      d| j                   dS )Nr  )rB   r  r  rE   s    r>   rD   z%DeletePhoneCallHistoryRequest.to_dict  s    0kk
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rd      f      S d      f      S )Nr@   s   	ry   Fr   rz   )rH   rK   rL   r  rE   s    r>   rI   z$DeletePhoneCallHistoryRequest._bytes  sR    xxKKDKK$74;;%;OqX
  	UVX
  	r@   c                 P    |j                         }t        |dz        } | |      S )Nrz   r  r  )rQ   rR   r   r  s       r>   rV   z)DeletePhoneCallHistoryRequest.from_reader  s&    !uqy/'""r@   rl   r  r`   r@   r>   r  r    s:    NNx~ 
 # #r@   r  c                   F    e Zd ZdZdZdedee   fdZd Zd Z	e
d        Zy	)
DeleteQuickReplyMessagesRequestl   iB r   shortcut_idr  c                      || _         || _        yr   r  r  )r=   r  r  s      r>   r?   z(DeleteQuickReplyMessagesRequest.__init__'  s     'r@   c                 \    d| j                   | j                  g dS | j                  d d  dS )Nr  )rB   r  r  r  rE   s    r>   rD   z'DeleteQuickReplyMessagesRequest.to_dict.  s:    2++"
 	
 .2WWQZ
 	
r@   c                     dj                  dt        j                  d| j                        dt        j                  dt	        | j
                              dj                  d | j
                  D              f      S )Nr@   s   r}   r   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z9DeleteQuickReplyMessagesRequest._bytes.<locals>.<genexpr>9  r  r  )rH   rK   rL   r  r   r  rE   s    r>   rI   z&DeleteQuickReplyMessagesRequest._bytes5  s_    xxKKd../D#dgg, ?HogkgngnHo@o
  	r@   c                     |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S )Nr  r   r   r   )rQ   rR   _shortcut_idr  rB   r   s         r>   rV   z+DeleteQuickReplyMessagesRequest.from_reader<  s^    (v() 	A"BJJrN	 |44r@   N)rX   rY   rZ   r[   r\   r^   r   r?   rD   rI   r_   rV   r`   r@   r>   r  r  #  sA    NNC T#Y 
 5 5r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	DeleteQuickReplyShortcutRequesti@G<r   r  c                     || _         yr   r  )r=   r  s     r>   r?   z(DeleteQuickReplyShortcutRequest.__init__L  r   r@   c                      d| j                   dS )Nr  )rB   r  r  rE   s    r>   rD   z'DeleteQuickReplyShortcutRequest.to_dictR  s    2++
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   @G<r}   )rH   rK   rL   r  rE   s    r>   rI   z&DeleteQuickReplyShortcutRequest._bytesX  s/    xxKKd../
  	r@   c                 4    |j                         } | |      S )Nr  r   )rQ   rR   r  s      r>   rV   z+DeleteQuickReplyShortcutRequest.from_reader^  s    (|,,r@   Nrf  r`   r@   r>   r  r  H  r   r@   r  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
'DeleteRevokedExportedChatInvitesRequesti{Vr   c                      || _         || _        yr   r7   admin_id)r=   r7   r  s      r>   r?   z0DeleteRevokedExportedChatInvitesRequest.__init__h       	 r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   rn   ro   r7   r   r  rp   s      r>   rs   z/DeleteRevokedExportedChatInvitesRequest.resolveo  X     ((v/F/Ftyy/Q)QR	,,63J3J4==3Y-YZ *R-Y!   *A6A26A6#A4$A64A6c                 
   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r7   r  )rC   r7   r   rD   r  rE   s    r>   rD   z/DeleteRevokedExportedChatInvitesRequest.to_dicts  si    :+5dii+JDII%%'PTPYPY3=dmmX3V--/
 	
 ]a\i\i
 	
r@   c                     dj                  d| j                  j                         | j                  j                         f      S )Nr@   s   {V)rH   r7   rI   r  rE   s    r>   rI   z.DeleteRevokedExportedChatInvitesRequest._bytesz  s;    xxIIMM  "
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  r   )rQ   rR   rS   	_admin_ids       r>   rV   z3DeleteRevokedExportedChatInvitesRequest.from_reader  s+    $$&((*		22r@   N)r7   r    r  r&   r   r`   r@   r>   r  r  d  s5    NN![
 3 3r@   r  c                   f    e Zd ZdZdZddddeded   dee   d	ee   f
d
Zd Z	d Z
d Zed        Zy)DeleteSavedHistoryRequesti_Mr  Nr7   r    r  parent_peerr  r  c                 J    || _         || _        || _        || _        || _        yr  r7   r  r  r  r  )r=   r7   r  r  r  r  s         r>   r?   z"DeleteSavedHistoryRequest.__init__  s(     	&  r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   rn   ro   r7   r  rp   s      r>   rs   z!DeleteSavedHistoryRequest.resolve  j     ((v/F/Ftyy/Q)QR	$33&:Q:QRVRbRb:c4cdD  *R4crM  c                 H   dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         n| j
                  | j                  | j                  dS )Nr  )rB   r7   r  r  r  r  )rC   r7   r   rD   r  r  r  r  rE   s    r>   rD   z!DeleteSavedHistoryRequest.to_dict  su    ,+5dii+JDII%%'PTPYPYkk9CDDTDTV^9_4++335eieueu
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz        | j                  | j                  du rdn| j                  j                         | j                  j                         t        j                  d	| j                        | j                  | j                  du rdn| j                  | j                        | j
                  | j
                  du rdf      S | j                  | j
                        f      S )
Nr@   s   _Mry   Fr   rz   r|   rI  r}   )
rH   rK   rL   r  r  r  rI   r7   r  r  rE   s    r>   rI   z DeleteSavedHistoryRequest._bytes  s   xxKKD$4$4$<@P@PTY@Yq_`jnjwjwj  DH  DQ  DQ  UZ  DZef  `a  b  ko  kx  kx  k@  DH  DQ  DQ  UZ  DZ  fg  `a  b  c##+t/?/?5/HCtO_O_OfOfOhIIKKdkk*==(DMMU,BCI`I`aeananIo==(DMMU,BC
  	 JNI`I`aeananIo
  	r@   c                    |j                         }|dz  r|j                         }nd }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd } | |||||      S )Nrz   r|   rI  r  r   rN   r  )rQ   rR   r   _parent_peerrS   r  r  r  s           r>   rV   z%DeleteSavedHistoryRequest.from_reader  s    !19!//1LL$$&//#19**,II19**,IIg<R[foppr@   r.  rX   rY   rZ   r[   r\   r^   r   r
   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    s    NN!_ !c !Q`Ha !rz  |D  sE !  V^  _g  Vh !e

	 q qr@   r  c                   L    e Zd ZdZdZdddee   fdZd Zd Z	d	 Z
ed
        Zy)DeleteScheduledMessagesRequesti+Yr   r7   r    r  c                      || _         || _        yr   r7   r  r=   r7   r  s      r>   r?   z'DeleteScheduledMessagesRequest.__init__       	r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z&DeleteScheduledMessagesRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g dS | j                  d d  dS )Nr  rB   r7   r  rC   r7   r   rD   r  rE   s    r>   rD   z&DeleteScheduledMessagesRequest.to_dict  sW    1+5dii+JDII%%'PTPYPY"
 	
 .2WWQZ
 	
r@   c                     dj                  d| j                  j                         dt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   +Yr   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z8DeleteScheduledMessagesRequest._bytes.<locals>.<genexpr>  r  r  rH   r7   rI   rK   rL   r   r  rE   s    r>   rI   z%DeleteScheduledMessagesRequest._bytes  s[    xxIID#dgg, ?HogkgngnHo@o
  	r@   c                     |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S Nr  r   rQ   rR   rS   r  rB   r   s         r>   rV   z*DeleteScheduledMessagesRequest.from_reader  `    $$&v() 	A"BJJrN	 #&&r@   NrX   rY   rZ   r[   r\   r   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    G    NN_ $s) S
 ' 'r@   r  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)DeleteTopicHistoryRequestl   o% r  r7   r    
top_msg_idc                      || _         || _        yr  r7   r  r=   r7   r  s      r>   r?   z"DeleteTopicHistoryRequest.__init__       	$r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z!DeleteTopicHistoryRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  rB   r7   r  rC   r7   r   rD   r  rE   s    r>   rD   z!DeleteTopicHistoryRequest.to_dict  s<    ,+5dii+JDII%%'PTPYPY//
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   or}   )rH   r7   rI   rK   rL   r  rE   s    r>   rI   z DeleteTopicHistoryRequest._bytes  s=    xxIIKKdoo.
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  r  )rQ   rR   rS   _top_msg_ids       r>   rV   z%DeleteTopicHistoryRequest.from_reader	  s)    $$&oo'+66r@   Nr   r`   r@   r>   r  r    sC    NN%_ %# %S
 7 7r@   r  c                   H    e Zd ZdZdZd
dedee   fdZd Z	d Z
ed	        Zy)DiscardEncryptionRequestl   .'g r   Nr   delete_historyc                      || _         || _        yr   r   r  )r=   r   r  s      r>   r?   z!DiscardEncryptionRequest.__init__  s     ,r@   c                 6    d| j                   | j                  dS )Nr  )rB   r   r  r   rE   s    r>   rD   z DiscardEncryptionRequest.to_dict  s    +||"11
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      t        j                  d| j                        f      S )Nr@   s   ry   Fr   rz   r}   )rH   rK   rL   r  r   rE   s    r>   rI   zDiscardEncryptionRequest._bytes"  sW    xxKKD$7$7$?4CVCVZ_C_qefhKKdll+
  	r@   c                 r    |j                         }t        |dz        }|j                         } | ||      S )Nrz   r   r  )rQ   rR   r   _delete_historyr   s        r>   rV   z$DiscardEncryptionRequest.from_reader)  s4    !uqy/??$8ODDr@   rl   rX   rY   rZ   r[   r\   r^   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r  r    sC    NN- -Xd^ -
 E Er@   r  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)EditChatAboutRequestl   = r   r7   r    aboutc                      || _         || _        yr   r7   r(  )r=   r7   r(  s      r>   r?   zEditChatAboutRequest.__init__6       	
r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zEditChatAboutRequest.resolve=  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr'  )rB   r7   r(  )rC   r7   r   rD   r(  rE   s    r>   rD   zEditChatAboutRequest.to_dict@  s<    '+5dii+JDII%%'PTPYPYZZ
 	
r@   c                     dj                  d| j                  j                         | j                  | j                        f      S )Nr@   s   )rH   r7   rI   rJ   r(  rE   s    r>   rI   zEditChatAboutRequest._bytesG  s=    xxII  ,
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr*  r  )rQ   rR   rS   _abouts       r>   rV   z EditChatAboutRequest.from_readerN  +    $$&%%'V,,r@   Nr  r`   r@   r>   r'  r'  2  sC    NN_ S S
 - -r@   r'  c                   J    e Zd ZdZdZdedddefdZd Zd	 Z	d
 Z
ed        Zy)EditChatAdminRequestl   QP r   r   r   r&   is_adminc                 .    || _         || _        || _        yr   r   r   r4  )r=   r   r   r4  s       r>   r?   zEditChatAdminRequest.__init__Y  s      r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zEditChatAdminRequest.resolvea  r   r   c                     d| j                   t        | j                  t              r| j                  j	                         n| j                  | j
                  dS )Nr3  )rB   r   r   r4  )r   rC   r   r   rD   r4  rE   s    r>   rD   zEditChatAdminRequest.to_dictd  sC    '||1;DLL(1St||++-Y]YeYe	
 	
r@   c                     dj                  dt        j                  d| j                        | j                  j                         | j                  rdf      S df      S )Nr@   s   [rG      ur   7y)rH   rK   rL   r   r   rI   r4  rE   s    r>   rI   zEditChatAdminRequest._bytesl  sZ    xxKKdll+LL!!]]M	
  	 1>	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr6  )rP   rN   tgread_bool)rQ   rR   r   r   	_is_admins        r>   rV   z EditChatAdminRequest.from_readert  s;    ##%'')&&(	8X	JJr@   NrX   rY   rZ   r[   r\   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r3  r3  U  sL    NN! !o ! !Y
 K Kr@   r3  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
"EditChatDefaultBannedRightsRequestl   AkK r   c                      || _         || _        yr   r7   banned_rights)r=   r7   rD  s      r>   r?   z+EditChatDefaultBannedRightsRequest.__init__  s     	*r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z*EditChatDefaultBannedRightsRequest.resolve  r   r   c                 
   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         dS | j                  dS )NrA  )rB   r7   rD  )rC   r7   r   rD   rD  rE   s    r>   rD   z*EditChatDefaultBannedRightsRequest.to_dict  sn    5+5dii+JDII%%'PTPYPY=GHZHZ\d=eT//779
 	
 lpk}k}
 	
r@   c                     dj                  d| j                  j                         | j                  j                         f      S )Nr@   s   Ak)rH   r7   rI   rD  rE   s    r>   rI   z)EditChatDefaultBannedRightsRequest._bytes  s=    xxII%%'
  	r@   c                 V    |j                         }|j                         } | ||      S )NrC  r   )rQ   rR   rS   _banned_rightss       r>   rV   z.EditChatDefaultBannedRightsRequest.from_reader  s+    $$&--/^<<r@   N)r7   r    rD  r   r   r`   r@   r>   rA  rA  |  s5    NN+S
 = =r@   rA  c                   F    e Zd ZdZdZdeddfdZd Zd Zd	 Z	e
d
        Zy)EditChatPhotoRequestit5r   r   photor   c                      || _         || _        yr   r   rL  )r=   r   rL  s      r>   r?   zEditChatPhotoRequest.__init__       
r@   c                 L   K   |j                  | j                        | _        y wrl   )get_input_chat_photorL  rp   s      r>   rs   zEditChatPhotoRequest.resolve  s     //

;
   "$c                     d| j                   t        | j                  t              r| j                  j	                         dS | j                  dS )NrK  )rB   r   rL  )r   rC   rL  r   rD   rE   s    r>   rD   zEditChatPhotoRequest.to_dict  sJ    '||-7

H-MTZZ'')
 	
 TXS]S]
 	
r@   c                     dj                  dt        j                  d| j                        | j                  j                         f      S )Nr@   s   t5rG   )rH   rK   rL   r   rL  rI   rE   s    r>   rI   zEditChatPhotoRequest._bytes  s=    xxKKdll+JJ
  	r@   c                 V    |j                         }|j                         } | ||      S )NrN  )rP   rN   )rQ   rR   r   _photos       r>   rV   z EditChatPhotoRequest.from_reader  +    ##%%%'8622r@   Nr   r`   r@   r>   rK  rK    sC    NN ,@ <
 3 3r@   rK  c                   @    e Zd ZdZdZdedefdZd Zd Z	e
d        Zy	)
EditChatTitleRequesti?xsr   r   r2  c                      || _         || _        yr   r   r2  )r=   r   r2  s      r>   r?   zEditChatTitleRequest.__init__  rO  r@   c                 6    d| j                   | j                  dS )NrY  )rB   r   r2  r[  rE   s    r>   rD   zEditChatTitleRequest.to_dict  s    '||ZZ
 	
r@   c                     dj                  dt        j                  d| j                        | j	                  | j
                        f      S )Nr@   s   ?xsrG   )rH   rK   rL   r   rJ   r2  rE   s    r>   rI   zEditChatTitleRequest._bytes  s?    xxKKdll+  ,
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr[  )rP   r   )rQ   rR   r   r?  s       r>   rV   z EditChatTitleRequest.from_reader  rW  r@   NrX   rY   rZ   r[   r\   r^   r   r?   rD   rI   r_   rV   r`   r@   r>   rY  rY    s=    NN C 
 3 3r@   rY  c                   z    e Zd ZdZdZddddedee   dee   d	ee	   d
ee   dee   fdZ
d Zd Zd Zed        Zy)EditExportedChatInviteRequestl   u/{    T Nr7   r    ru  revokedexpire_dateusage_limitrequest_neededr2  c                 f    || _         || _        || _        || _        || _        || _        || _        yzz
        :returns messages.ExportedChatInvite: Instance of either ExportedChatInvite, ExportedChatInviteReplaced.
        Nr7   ru  rc  rd  re  rf  r2  )r=   r7   ru  rc  rd  re  rf  r2  s           r>   r?   z&EditExportedChatInviteRequest.__init__  s8     		&&,
r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z%EditExportedChatInviteRequest.resolve  r   r   c           	         dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  | j                  dS )Nra  )rB   r7   ru  rc  rd  re  rf  r2  )
rC   r7   r   rD   ru  rc  rd  re  rf  r2  rE   s    r>   rD   z%EditExportedChatInviteRequest.to_dict  se    0+5dii+JDII%%'PTPYPYII||++++"11ZZ	
 		
r@   c                 \   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  dnd	z  | j                  | j                  du rdnd
z        | j                  j                         | j                  | j                        | j                  | j                  du rdn| j                  | j                        | j
                  | j
                  du rdnt        j                  d| j
                        | j                  dn| j                  rdnd| j                  | j                  du rdf      S | j                  | j                        f      S )Nr@   s   u/ʽry   Fr   r|   rz   r{   rI  rP  r}   r:  r;  )rH   rK   rL   rc  rd  re  rf  r2  r7   rI   rJ   ru  r  rE   s    r>   rI   z$EditExportedChatInviteRequest._bytes  s3   xxKKDLL$8DLLE<QqWXbfbrbrbz  C  O  O  SX  X]^  ^_  `  im  iy  iy  iA  EI  EU  EU  Y^  E^  de  de  f  os  oB  oB  oJ  jk  PQ  R  [_  [e  [e  [m  qu  q{  q{  D  qD  VW  JL  M  NII  +##+t/?/?5/HCtOfOfgkgwgwOx##+t/?/?5/HCv{{[_aeaqaqOr&&.CdFYFY]_l::%u)<C	
 	 		 DHCWCWX\XbXbCc	
 	 		r@   c           	      \   |j                         }t        |dz        }|j                         }|j                         }|dz  r|j	                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }	nd }	 | |||||||	      S )Nr|   rz   r{   rI  rP  ri  )r   r   rN   r   r  r=  )
rQ   rR   r   _revokedrS   r  _expire_date_usage_limit_request_neededr?  s
             r>   rV   z)EditExportedChatInviteRequest.from_reader  s    !	?$$&$$&19!--/LL19!??,LL19$002O"O2:))+FFE8co  AP  X^  _  	_r@   r   )rX   rY   rZ   r[   r\   r   r   r   r
   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   ra  ra    s    NN
_ 
C 
(4. 
dlmudv 
  KS  TW  KX 
  ow  x|  o} 
  KS  TW  KX 
S


 _ _r@   ra  c                   J    e Zd ZdZdZdddeddfdZd	 Zd
 Zd Z	e
d        Zy)EditFactCheckRequestiur   r7   r    re   textr1   c                 .    || _         || _        || _        yr   r7   re   rt  )r=   r7   re   rt  s       r>   r?   zEditFactCheckRequest.__init__+  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zEditFactCheckRequest.resolve3  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         dS | j
                  dS )Nrs  )rB   r7   re   rt  )rC   r7   r   rD   re   rt  rE   s    r>   rD   zEditFactCheckRequest.to_dict6  sp    '+5dii+JDII%%'PTPYPYkk+5dii+JDII%%'	
 	
 QUPYPY	
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        | j                  j                         f      S )Nr@   s   ur}   )rH   r7   rI   rK   rL   re   rt  rE   s    r>   rI   zEditFactCheckRequest._bytes>  sM    xxIIKKdkk*II	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nrv  r  )rQ   rR   rS   r   _texts        r>   rV   z EditFactCheckRequest.from_readerF  s9    $$&//#$$&gE::r@   Nr   r`   r@   r>   rs  rs  '  sK    NN_ c AW S
 ; ;r@   rs  c                   p    e Zd ZdZdZddddedee   dee   d	ee   d
ee   fdZ	d Z
d Zd Zed        Zy)EditForumTopicRequestl   4 r   Nr7   r    topic_idr2  rE  closedhiddenc                 X    || _         || _        || _        || _        || _        || _        yr   r7   r~  r2  rE  r  r  )r=   r7   r~  r2  rE  r  r  s          r>   r?   zEditForumTopicRequest.__init__R  s/     	 
*r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zEditForumTopicRequest.resolve]  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  dS )Nr}  )rB   r7   r~  r2  rE  r  r  )	rC   r7   r   rD   r~  r2  rE  r  r  rE   s    r>   rD   zEditForumTopicRequest.to_dict`  sZ    (+5dii+JDII%%'PTPYPYZZ!//kkkk
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  dndz  | j                  dnd	z        | j                  j                         t        j                  d
| j                        | j                  | j                  du rdn| j                  | j                        | j                  | j                  du rdnt        j                  d| j                        | j
                  dn| j
                  rdnd| j                  df      S | j                  rdf      S df      S )Nr@   s   4ry   Fr   rz   r{   r|   rI  r}   rG   r:  r;  )rH   rK   rL   r2  rE  r  r  r7   rI   r~  rJ   rE   s    r>   rI   zEditForumTopicRequest._bytesk  s   xxKKDJJ$6$**:MqST^b^p^p^x  }A  }O  }O  SX  }XYZ  ^_  `  im  it  it  i|  de  BC  D  MQ  MX  MX  M`  HI  fg  h  iIIKKdmm,::%u)<C4CWCWX\XbXbCc%%-1C1Cu1LCSYS^S^_ceiewewSx;;&Cdkk]};;&C	
 	 		 ?Ckk]	
 	 		 P]	
 	 		r@   c                 >   |j                         }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j	                         }nd }|dz  r|j	                         }nd } | ||||||      S )Nrz   r{   r|   rI  r  )r   rN   r   rP   r=  )	rQ   rR   r   rS   	_topic_idr?  rT  _closed_hiddens	            r>   rV   z!EditForumTopicRequest.from_readerw  s    !$$&OO%	19))+FF19#--/N!N19((*GG19((*GG	~fmv}~~r@   r  )rX   rY   rZ   r[   r\   r^   r   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r}  r}  N  s    NN	_ 	 	HSM 	gopsgt 	  DL  MQ  DR 	  ai  jn  ao 	S	

  r@   r}  c                       e Zd ZdZdZddddee   dee   dee   d	ed
   ded   deed      fdZ	d Z
d Zd Zed        Zy)EditInlineBotMessageRequestl   } r   Nr  r   
no_webpageinvert_mediamessager  r   reply_markupr,   entitiesr(   c                 f    || _         || _        || _        || _        || _        || _        || _        yr   r  r  r  r  r  r  r  )r=   r  r  r  r  r  r  r  s           r>   r?   z$EditInlineBotMessageRequest.__init__  s7     $(
( r@   c                 f   K   | j                   r!|j                  | j                         | _         y y wrl   )r  get_input_mediarp   s      r>   rs   z#EditInlineBotMessageRequest.resolve  s(     ::..tzz:DJ s   /1c                 b   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  t        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j                  g dS | j                  D cg c]$  }t        |t              r|j                         n|& c}dS c c}w )Nr  )rB   r  r  r  r  r  r  r  )
rC   r  r   rD   r  r  r  r  r  r  r   s     r>   rD   z#EditInlineBotMessageRequest.to_dict  s    .'1$''8'D$''//#$''// --||-7

H-MTZZ'')SWS]S];EdFWFWYa;bD--557hlhyhy"mm3	
 		
 rvq~q~9lmTUW_I`!))+fg:g9	
 		
 :@s   >)D,c                 &   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz        | j                  j                         | j
                  | j
                  du rdn| j                  | j
                        | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdf      S dj                  dt        j                  dt        | j                              dj                  d | j                  D              f      f      S )Nr@   s   }Ury   Fr   r{          @  r|   rI  r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z5EditInlineBotMessageRequest._bytes.<locals>.<genexpr>  7       Ux  ef  VW  V^  V^  V`  Uxr   )rH   rK   rL   r  r  r  r  r  r  r  rI   rJ   r   rE   s    r>   rI   z"EditInlineBotMessageRequest._bytes  s   xxKKDOO$;tRW?Wq]^hlhyhy  iB  FJ  FW  FW  [`  F`cd  fk  l  uy  uA  uA  uI  MQ  MY  MY  ]b  Mb  pq  hl  m  vz  v@  v@  vH  LP  LV  LV  Z_  L_  qr  ej  k  tx  tE  tE  tM  QU  Qb  Qb  fk  Qk  op  qr  s  |@  |I  |I  |Q  UY  Ub  Ub  fk  Uk  wx  qr  s  tGGNN<<'4<<5+@CtG[G[\`\h\hGi::%u)<C4::CTCTCV$$,0A0AU0JCQUQbQbQiQiQk==(DMMU,BC
  	 ILReflfqfqrvx{  }A  }J  }J  yK  gL  MP  MU  MU  Ux  jn  jw  jw  Ux  Mx  Ry  Iz
  	r@   c           	         |j                         }t        |dz        }t        |dz        }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  rR|j                          g }	t	        |j                               D ]#  }
|j                         }|	j                  |       % nd }	 | |||||||	      S )Nr{   r  r  r  r|   rI  r  )r   r   rN   r   r   r   )rQ   rR   r   _no_webpage_invert_mediar  _messager+  _reply_markup	_entitiesrB   r   s               r>   rV   z'EditInlineBotMessageRequest.from_reader  s   !519oUU]+""$4<++-HH5=))+FF19"002M M19OOI6??,- %))+  $%
 IckW_gm  }J  U^  _  	_r@   NNNNNN)rX   rY   rZ   r[   r\   r   r   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    s    NN
!8 
!htn 
!iqrviw 
!  HP  QT  HU 
!  ck  l|  c} 
!  RZ  [l  Rm 
!  ~F  GK  L_  G`  ~a 
!;

	 _ _r@   r  c                       e Zd ZdZdZddddedee   dee   d	ee   d
ed   ded   dee	d      dee
   dee   fdZd Zd Zd Zed        Zy)EditMessageRequestl   @? r   Nr7   r    r  r  r  r  r  r   r  r,   r  r(   schedule_datequick_reply_shortcut_idc                     || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        yr   
r7   r  r  r  r  r  r  r  r  r  )r=   r7   r  r  r  r  r  r  r  r  r  s              r>   r?   zEditMessageRequest.__init__  sN     	$(
( *'>$r@   c                    K   |j                  |j                  | j                         d {         | _        | j                  r!|j	                  | j                        | _        y y 7 ;wrl   rn   ro   r7   r  r  rp   s      r>   rs   zEditMessageRequest.resolve  R     ((v/F/Ftyy/Q)QR	::..tzz:DJ  *R   *A*A(<A*c                    dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  t        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j                  g n9| j                  D cg c]$  }t        |t              r|j                         n|& c}| j                  | j                  dS c c}w )Nr  )rB   r7   r  r  r  r  r  r  r  r  r  )rC   r7   r   rD   r  r  r  r  r  r  r  r  r  r   s     r>   rD   zEditMessageRequest.to_dict  s    %+5dii+JDII%%'PTPYPY''// --||-7

H-MTZZ'')SWS]S];EdFWFWYa;bD--557hlhyhy"mm3quq~q~9lmTUW_I`!))+fg:g9!//'+'C'C
 	
 :@s   )Ec                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz        | j                  j                         t        j                  d| j                        | j
                  | j
                  du rdn| j                  | j
                        | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdnZdj                  dt        j                  dt        | j                              dj                  d | j                  D              f      | j                  | j                  du rdn| j!                  | j                        | j                  | j                  du rdf
      S t        j                  d| j                        f
      S )Nr@   s   @ry   Fr   r{   r  r  r  r|   rI        r}   r   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z,EditMessageRequest._bytes.<locals>.<genexpr>
  r  r   )rH   rK   rL   r  r  r  r  r  r  r  r  r7   rI   r  rJ   r   r  rE   s    r>   rI   zEditMessageRequest._bytes  s;   xxKKDOO$;tRW?Wq]^hlhyhy  iB  FJ  FW  FW  [`  F`cd  fk  l  uy  uA  uA  uI  MQ  MY  MY  ]b  Mb  pq  hl  m  vz  v@  v@  vH  LP  LV  LV  Z_  L_  qr  ej  k  tx  tE  tE  tM  QU  Qb  Qb  fk  Qk  op  qr  s  |@  |I  |I  |Q  UY  Ub  Ub  fk  Uk  wx  qr  s  |@  |N  |N  |V  Z^  Zl  Zl  pu  Zu  wx  {@  A  JN  Jf  Jf  Jn  rv  rN	  rN	  R	W	  rW	  EF  ]	c	  d	  e	IIKKdgg&<<'4<<5+@CtG[G[\`\h\hGi::%u)<C4::CTCTCV$$,0A0AU0JCQUQbQbQiQiQk==(DMMU,BCReflfqfqrvx{  }A  }J  }J  yK  gL  MP  MU  MU  Ux  jn  jw  jw  Ux  Mx  Ry  Iz%%-1C1Cu1LCSWSjSjkok}k}S~//74;W;W[`;`C
  	 hngrgrswy}  zV  zV  hW
  	r@   c                 `   |j                         }t        |dz        }t        |dz        }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }	nd }	|dz  rR|j                          g }
t	        |j                               D ]#  }|j                         }|
j                  |       % nd }
|dz  r|j                         }nd }|dz  r|j                         }nd } | |||||||	|
||	
      S )
Nr{   r  r  r  r|   rI  r  r  r  )r   r   rN   r   r   r   r  )rQ   rR   r   r  r  rS   r  r  r+  r  r  rB   r   _schedule_date_quick_reply_shortcut_ids                  r>   rV   zEditMessageRequest.from_reader  sR   !519oUU]+$$&oo4<++-HH5=))+FF19"002M M19OOI6??,- %))+  $%
 I5=#//1N!N6>'-'8$'+$#+Mcksy  IV  aj  zH  bz  {  	{r@   )NNNNNNNN)rX   rY   rZ   r[   r\   r^   r   r   r   r   r
   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    s   NN?_ ?# ?8D> ?fnosft ?  EM  NQ  ER ?  `h  iy  `z ?  OW  Xi  Oj ?  {C  DH  I\  D]  {^ ?  t|  }E  tF ?  fn  or  fs ?;

 ${ ${r@   r  c                   @    e Zd ZdZdZdedefdZd Zd Z	e
d        Zy	)
EditQuickReplyShortcutRequesti< \r   r  r   c                      || _         || _        yr   r  r   )r=   r  r   s      r>   r?   z&EditQuickReplyShortcutRequest.__init__;  s     ' r@   c                 6    d| j                   | j                  dS )Nr  )rB   r  r   r  rE   s    r>   rD   z%EditQuickReplyShortcutRequest.to_dictB  s    0++
 	
r@   c                     dj                  dt        j                  d| j                        | j	                  | j
                        f      S )Nr@   s   < \r}   )rH   rK   rL   r  rJ   r   rE   s    r>   rI   z$EditQuickReplyShortcutRequest._bytesI  sA    xxKKd../  /
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  )r   r   )rQ   rR   r  r   s       r>   rV   z)EditQuickReplyShortcutRequest.from_readerP  s)    (((*	|i@@r@   Nr_  r`   r@   r>   r  r  7  s?    NN!C !3 !
 A Ar@   r  c                       e Zd ZdZdZddddee   dee   dee   d	ee   d
ee	   ded   fdZ
d Zd Zd Zed        Zy)ExportChatInviteRequestl   ^H l   X
h Nr7   r    legacy_revoke_permanentrf  rd  re  r2  subscription_pricingr/   c                 f    || _         || _        || _        || _        || _        || _        || _        y)zs
        :returns ExportedChatInvite: Instance of either ChatInviteExported, ChatInvitePublicJoinRequests.
        Nr7   r  rf  rd  re  r2  r  )r=   r7   r  rf  rd  re  r2  r  s           r>   r?   z ExportChatInviteRequest.__init__[  s:     	'>$,&&
$8!r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zExportChatInviteRequest.resolveg  r   r   c                 x   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r7   r  rf  rd  re  r2  r  )
rC   r7   r   rD   r  rf  rd  re  r2  r  rE   s    r>   rD   zExportChatInviteRequest.to_dictj  s    *+5dii+JDII%%'PTPYPY'+'C'C"11++++ZZKUVZVoVoqyKzD$=$=$E$E$G	
 		
 AE  AZ  AZ	
 		
r@   c           
         dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz        | j                  j                         | j
                  | j
                  du rdn| j                  | j
                        | j                  | j                  du rdnt        j                  d| j                        | j                  | j                  du rdn| j                  | j                        | j                  | j                  du rdf      S | j                  j                         f      S )Nr@   s   Ury   Fr   r|   rI  rz   r{   rP      r}   )rH   rK   rL   r  rf  rd  re  r2  r  r7   rI   r  rJ   rE   s    r>   rI   zExportChatInviteRequest._bytesv  s   xxKKD$@$@$HDLhLhlqLqqwx  CG  CV  CV  C^  bf  bu  bu  y~  b~}~  DE  F  OS  O_  O_  Og  ko  k{  k{  D  kD  JK  JK  L  UY  Ue  Ue  Um  qu  qA  qA  EJ  qJ  PQ  PQ  R  [_  [e  [e  [m  qu  q{  q{  D  qD  VW  JL  M  VZ  Vo  Vo  Vw  {  {T  {T  X]  {]  QR  ce  f  gII##+t/?/?5/HCtOfOfgkgwgwOx##+t/?/?5/HCv{{[_aeaqaqOr::%u)<C4CWCWX\XbXbCc,,48Q8QUZ8ZC
  	 bfazaz  bB  bB  bD
  	r@   c           	      X   |j                         }t        |dz        }t        |dz        }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j	                         }nd }|dz  r|j                         }	nd }	 | |||||||	      S )Nr|   rI  rz   r{   rP  r  r  r   r   rN   r  r   )
rQ   rR   r   _legacy_revoke_permanentrq  rS   ro  rp  r?  _subscription_pricings
             r>   rV   z#ExportChatInviteRequest.from_reader  s    !#'	? uqy/$$&19!--/LL19!??,LL2:))+FF2:$*$8$8$:!$(!7O`o  ~J  Xd  lr  I^  _  	_r@   r  )rX   rY   rZ   r[   r\   r   r   r
   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  W  s    NN
9_ 
9xPT~ 
9ltuylz 
9  OW  X`  Oa 
9  u}  ~A  uB 
9  PX  Y\  P] 
9  zB  Ca  zb 
9S

	 _ _r@   r  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)FaveStickerRequestl   [Es r   r  r   unfavec                      || _         || _        yr   r  r  )r=   r  r  s      r>   r?   zFaveStickerRequest.__init__  r  r@   c                 L   K   |j                  | j                        | _        y wrl   get_input_documentr  rp   s      r>   rs   zFaveStickerRequest.resolve       **4773rR  c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  )rB   r  r  )rC   r  r   rD   r  rE   s    r>   rD   zFaveStickerRequest.to_dict  s7    %'1$''8'D$''//#$''kk
 	
r@   c                     dj                  d| j                  j                         | j                  rdf      S df      S )Nr@   s   [r:  r;  )rH   r  rI   r  rE   s    r>   rI   zFaveStickerRequest._bytes  sF    xxGGNN![[M
  	 /<
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  rN   r=  )rQ   rR   r  _unfaves       r>   rV   zFaveStickerRequest.from_reader  +    ""$$$&c'**r@   NrX   rY   rZ   r[   r\   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    C    NN.  4
 + +r@   r  c            (           e Zd ZdZdZd dddee   dddee   d	ee   d
ee   dee   dee   dee   dee   dee   dee   ded   dee	   ded   ded   dee   dee   ded   f&dZ
d Zd Zd Zed        Zy)!ForwardMessagesRequestl   (/ r   N	from_peerr    r  to_peersilent
backgroundwith_my_scoredrop_authordrop_media_captions
noforwardsallow_paid_floodskipr  r  reply_tor"   r  rF  quick_reply_shortcutr!   video_timestampallow_paid_starssuggested_postr0   c                    || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        ||nJt        t        |            D cg c]-  }t        j                  t        j                  d      dd      / c}| _        || _        || _        || _        || _        || _        || _        || _        || _        yc c}w rH  )r  r  r  r  r  r  r  r  r  r  r   r   r^   r$  r%  r&  r  r  r  r  rF  r  r  r  r  )r=   r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  rB   s                        r>   r?   zForwardMessagesRequest.__init__  s     #$*&#6 $$8!&/&;  ~C  DG  HJ  DK  ~L  BMxy#..QSQ[Q[\]Q^`enr.Bs  BM$ *$8!. 0, BMs   !2Cc                 |  K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 7 T7 wrl   )rn   ro   r  r  rF  rp   s      r>   rs   zForwardMessagesRequest.resolve  s     --F4K4KDNN4[.[\++&2I2I$,,2W,WX<< //f6M6Mdll6[0[\DL  /\,W0[4   *B<B66B<#B8$AB<&B:'B<8B<:B<c                    i dddt        | j                  t              r| j                  j                         n| j                  d| j                  g n| j                  d d  dt        | j
                  t              r| j
                  j                         n| j
                  d| j                  d| j                  d| j                  d	| j                  d
| j                  d| j                  d| j                  d| j                  g n| j                  d d  d| j                  dt        | j                  t              r| j                  j                         n| j                  d| j                   dt        | j"                  t              r| j"                  j                         n| j"                  dt        | j$                  t              r| j$                  j                         n| j$                  | j&                  | j(                  t        | j*                  t              r| j*                  j                         dS | j*                  dS )NrB   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  )r  r  r  )rC   r  r   rD   r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  rE   s    r>   rD   zForwardMessagesRequest.to_dict  sE   
)
ZPX5Y//1_c_m_m
 "TWWQZ
 DLL(1St||++-Y]YeYe	

 dkk
 $//
 T//
 4++
 "4#;#;
 $//
 #D$=$=
 t~~54>>!;L
 $//
 :dmmX3V--/\`\i\i
 T//
  DLL(1St||++-Y]YeYe!
" #:VZVoVoqyKzD$=$=$E$E$G  AE  AZ  AZ#
$  $33 $ 5 5?I$J]J]_g?hd1199;)
 	
( os  oB  oB)
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                   | j                   du rdndz  | j"                  | j"                  du rdndz        | j$                  j'                         dt        j                  dt)        | j*                              dj                  d | j*                  D              dt        j                  dt)        | j,                              dj                  d | j,                  D              | j.                  j'                         | j                  | j                  du rdnt        j                  d| j                        | j                  | j                  du rdn| j                  j'                         | j                  | j                  du rdn| j1                  | j                        | j                  | j                  du rdn| j                  j'                         | j                  | j                  du rdn| j                  j'                         | j                  | j                  du rdnt        j                  d| j                        | j                   | j                   du rdnt        j                  d| j                         | j"                  | j"                  du rdf      S | j"                  j'                         f      S )Nr@   s   (ry   Fr   r  @      r     r          @        r            r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z0ForwardMessagesRequest._bytes.<locals>.<genexpr>  r  r  c              3   H   K   | ]  }t        j                  d |        ywrG   Nr  r   s     r>   r   z0ForwardMessagesRequest._bytes.<locals>.<genexpr>  !     O}ijPVP[P[\`bcPdO}r  rG   )rH   rK   rL   r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  r  rI   r   r  r  r  r  rE   s    r>   rI   zForwardMessagesRequest._bytes  s   xxKKDKK$74;;%;OqUWaeapapax  }A  }L  }L  PU  }U\]  []  ^  gk  gy  gy  gA  EI  EW  EW  [`  E`  bc  fi  j  sw  sC  sC  sK  OS  O_  O_  ch  Oh  no  nr  s  |@  |T  |T  |\  `d  `x  `x  |A  `A  wx  GK  L  UY  Ud  Ud  Ul  pt  p  p  CH  pH  PQ  NS  T  ]a  ]v  ]v  ]~  BF  B[  B[  _d  Bd  XY  jp  q  z~  zI	  zI	  zQ	  U	Y	  U	d	  U	d	  h	m	  U	m	  uv  s	v	  w	  @
D
  @
M
  @
M
  @
U
  Y
]
  Y
f
  Y
f
  j
o
  Y
o
  {	|	  u
|
  }
  FJ  FX  FX  F`  dh  dv  dv  z  d  AB  EI  J  SW  S_  S_  Sg  ko  kw  kw  {@  k@  NO  FJ  K  TX  Tm  Tm  Tu  y}  yR  yR  V[  y[  OP  ag  h  qu  qE  qE  qM  QU  Qe  Qe  in  Qn  lm  t{  |  EI  EZ  EZ  Eb  fj  f{  f{  D  fD  @A  JQ  R  [_  [n  [n  [v  z~  zM  zM  QV  zV  VW  \c  d  eNN!!#D#dgg, ?HogkgngnHo@oD#dnn2E FsxxO}nrn|n|O}G}LL!??*doo.FCV[[Y]_c_n_nMo==(DMMU,BCI]I]I_%%-1C1Cu1LCSWSjSjkok}k}S~<<'4<<5+@Ct||GZGZG\,,48Q8QUZ8ZCaeazaz  bB  bB  bD''/43G3G53PCW]WbWbcgimi}i}W~((0D4I4IU4RCY_YdYdeiko  lA  lA  ZB&&.$2E2E2NC
  	 VZUhUhUoUoUq
  	r@   c                 h   |j                         }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }	|j                         }
|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       % |j                          g }t        |j                               D ]#  }|j                         }|j	                  |       % |j                         }|dz  r|j                         }nd }|d	z  r|j                         }nd }|d
z  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd } | d#i d|
d|d|d|d|d|d|d|d|d|	d|d|d|d|d|d|d |d!|d"|S )$Nr  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  r  r  r  rF  r  r  r  r  r`   )r   r   rN   r   r   rP   r  )rQ   rR   r   _silent_background_with_my_score_drop_author_drop_media_captions_noforwards_allow_paid_floodskip
_from_peerr  rB   r   r-  _to_peerr  	_reply_tor  rU  _quick_reply_shortcut_video_timestamp_allow_paid_stars_suggested_posts                           r>   rV   z"ForwardMessagesRequest.from_reader
  s   !urz"52:&eck*EDL)#EDL155=) $UV^ 4))+
v() 	A"BJJrN	 	
v() 	"A!!#Bb!	" '')3; //+KK7?,,.II4<#//1N!N4<++-HH6>$*$8$8$:!$(!7?%0#7? & 0 0 2 $7?$224O"O  UZ  UC  U  U'  U^i  U  zH  U  Vb  U  xL  U  Yd  U  {P  U  \f  U  s~  U  IR  U  bp  U  zB  U  Yn  U  @P  U  ct  U  ET  U  	Ur@   )NNNNNNNNNNNNNNNN)rX   rY   rZ   r[   r\   r   r^   r   r   r
   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    s   NN-/ -tCy -? -dlmqdr -  FN  OS  FT -  jr  sw  jx -  LT  UY  LZ -  v~  C  vD -  W_  `d  We -  BJ  KO  BP -  bf  gj  bk -  ~F  GJ  ~K -  \d  ew  \x -  NV  W_  N` -  px  yH  pI -  fn  oL	  fM	 -  e	m	  n	q	  e	r	 -  K
S
  T
W
  K
X
 -  o
w
  x
K  o
L -0]
0$ 8U 8Ur@   r  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
GetAdminsWithInvitesRequesti 9l   +- c                     || _         y)z]
        :returns messages.ChatAdminsWithInvites: Instance of ChatAdminsWithInvites.
        Nr   r   s     r>   r?   z$GetAdminsWithInvitesRequest.__init__J  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z#GetAdminsWithInvitesRequest.resolveP  r   r   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nr  r   r   rE   s    r>   rD   z#GetAdminsWithInvitesRequest.to_dictS  s?    .+5dii+JDII%%'
 	
PTPYPY
 	
r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s    9r   rE   s    r>   rI   z"GetAdminsWithInvitesRequest._bytesY  +    xxII
  	r@   c                 4    |j                         } | |      S r   r   r   s      r>   rV   z'GetAdminsWithInvitesRequest.from_reader_  r   r@   Nr   r   r`   r@   r>   r  r  F  r   r@   r  c                   0    e Zd ZdZdZd Zd Zed        Zy)GetAllDraftsRequestie?jr   c                 
    ddiS )NrB   r  r`   rE   s    r>   rD   zGetAllDraftsRequest.to_dicti  s    &
 	
r@   c                 $    dj                  d      S )Nr@   )s   e?jr  rE   s    r>   rI   zGetAllDraftsRequest._bytesn  r  r@   c                      |        S rl   r`   r  s     r>   rV   zGetAllDraftsRequest.from_readers  r  r@   Nr  r`   r@   r>   r  r  e  r  r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetAllStickersRequestl   !Aq )HEr   c                     || _         yzh
        :returns messages.AllStickers: Instance of either AllStickersNotModified, AllStickers.
        Nr   r   s     r>   r?   zGetAllStickersRequest.__init__|  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   zGetAllStickersRequest.to_dict      (II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   rG   rH   rK   rL   r   rE   s    r>   rI   zGetAllStickersRequest._bytes  -    xxKKdii(
  	r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   z!GetAllStickersRequest.from_reader        "r@   Nrf  r`   r@   r>   r  r  x  6    NNS 
  r@   r  c            
       V    e Zd ZdZdZddededee   dee   fdZd	 Z	d
 Z
ed        Zy)GetArchivedStickersRequestivWiqזrN	offset_idlimitmasksemojisc                 <    || _         || _        || _        || _        y)zS
        :returns messages.ArchivedStickers: Instance of ArchivedStickers.
        Nr*  r+  r,  r-  )r=   r*  r+  r,  r-  s        r>   r?   z#GetArchivedStickersRequest.__init__  s      #

r@   c                 b    d| j                   | j                  | j                  | j                  dS )Nr)  )rB   r*  r+  r,  r-  r/  rE   s    r>   rD   z"GetArchivedStickersRequest.to_dict  s+    -ZZZZkk
 	
r@   c           	      B   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        t        j                  d| j
                        t        j                  d	| j                        f      S )
Nr@   s   vWry   Fr   rz   r{   rG   r}   )rH   rK   rL   r,  r-  r*  r+  rE   s    r>   rI   z!GetArchivedStickersRequest._bytes  s    xxKKDJJ$6$**:MqST^b^i^i^quy  vA  vA  EJ  vJYZ  PQ  R  SKKdnn-KKdjj)	
  	r@   c                     |j                         }t        |dz        }t        |dz        }|j                         }|j                         } | ||||      S )Nrz   r{   r/  r   r   rP   )rQ   rR   r   _masks_emojis
_offset_id_limits          r>   rV   z&GetArchivedStickersRequest.from_reader  sS    !eaiuqy/%%'
"ZvVGTTr@   NNr%  r`   r@   r>   r)  r)    sX    NN# c (4. W_`dWe 
 U Ur@   r)  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
GetAttachMenuBotRequestia!wl   =g6 c                     || _         y)zL
        :returns AttachMenuBotsBot: Instance of AttachMenuBotsBot.
        Nbot)r=   r=  s     r>   r?   z GetAttachMenuBotRequest.__init__  s     r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   ro   r=  rp   s      r>   rs   zGetAttachMenuBotRequest.resolve  -     ''f.E.Edhh.O(OP(Or   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nr:  )rB   r=  )rC   r=  r   rD   rE   s    r>   rD   zGetAttachMenuBotRequest.to_dict  s=    *)3DHHh)G488##%
 	
MQXX
 	
r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   a!w)rH   r=  rI   rE   s    r>   rI   zGetAttachMenuBotRequest._bytes  s)    xxHHOO
  	r@   c                 4    |j                         } | |      S )Nr<  r   )rQ   rR   _bots      r>   rV   z#GetAttachMenuBotRequest.from_reader  s    ##%t}r@   N)r=  r&   r   r`   r@   r>   r:  r:    s5    NNQ
  r@   r:  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetAttachMenuBotsRequestil   #\ r   c                     || _         y)zh
        :returns AttachMenuBots: Instance of either AttachMenuBotsNotModified, AttachMenuBots.
        Nr   r   s     r>   r?   z!GetAttachMenuBotsRequest.__init__  r   r@   c                      d| j                   dS )NrF  r   r   rE   s    r>   rD   z GetAttachMenuBotsRequest.to_dict  s    +II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   rG   r#  rE   s    r>   rI   zGetAttachMenuBotsRequest._bytes  r$  r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   z$GetAttachMenuBotsRequest.from_reader  r&  r@   Nrf  r`   r@   r>   rF  rF    r'  r@   rF  c                   8    e Zd ZdZdZddZd Zd Zed        Z	y)	GetAttachedStickersRequestl   g l   k_$ c                     || _         y)zT
        :returns Vector<StickerSetCovered>: This type has no constructors.
        Nr  )r=   r  s     r>   r?   z#GetAttachedStickersRequest.__init__       
r@   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )NrL  )rB   r  )rC   r  r   rD   rE   s    r>   rD   z"GetAttachedStickersRequest.to_dict  s?    --7

H-MTZZ'')
 	
SWS]S]
 	
r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   g[)rH   r  rI   rE   s    r>   rI   z!GetAttachedStickersRequest._bytes  s+    xxJJ
  	r@   c                 4    |j                         } | |      S )NrN  r   )rQ   rR   r+  s      r>   rV   z&GetAttachedStickersRequest.from_reader  s    %%'  r@   N)r  r%   
rX   rY   rZ   r[   r\   r?   rD   rI   r_   rV   r`   r@   r>   rL  rL    s/    NN
 ! !r@   rL  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetAvailableEffectsRequestl   9
D= ipDr   c                     || _         y)zw
        :returns messages.AvailableEffects: Instance of either AvailableEffectsNotModified, AvailableEffects.
        Nr   r   s     r>   r?   z#GetAvailableEffectsRequest.__init__  r   r@   c                      d| j                   dS )NrU  r   r   rE   s    r>   rD   z"GetAvailableEffectsRequest.to_dict      -II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   9
r}   r#  rE   s    r>   rI   z!GetAvailableEffectsRequest._bytes$  -    xxKKdii(
  	r@   c                 4    |j                         } | |      S r   r  r   s      r>   rV   z&GetAvailableEffectsRequest.from_reader*      !r@   Nrf  r`   r@   r>   rU  rU    r'  r@   rU  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetAvailableReactionsRequestil   -MH r   c                     || _         y)z}
        :returns messages.AvailableReactions: Instance of either AvailableReactionsNotModified, AvailableReactions.
        Nr   r   s     r>   r?   z%GetAvailableReactionsRequest.__init__4  r   r@   c                      d| j                   dS )Nr^  r   r   rE   s    r>   rD   z$GetAvailableReactionsRequest.to_dict:      /II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   r}   r#  rE   s    r>   rI   z#GetAvailableReactionsRequest._bytes@  r$  r@   c                 4    |j                         } | |      S r   r  r   s      r>   rV   z(GetAvailableReactionsRequest.from_readerF  r\  r@   Nrf  r`   r@   r>   r^  r^  0  r'  r@   r^  c                   @    e Zd ZdZdZdddefdZd Zd Ze	d	        Z
y
)GetBotAppRequesti4l   C appr   r   c                      || _         || _        y)z?
        :returns messages.BotApp: Instance of BotApp.
        Nrf  r   )r=   rf  r   s      r>   r?   zGetBotAppRequest.__init__P       	r@   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nre  )rB   rf  r   )rC   rf  r   rD   r   rE   s    r>   rD   zGetBotAppRequest.to_dictW  s9    #)3DHHh)G488##%TXXII
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   4rG   )rH   rf  rI   rK   rL   r   rE   s    r>   rI   zGetBotAppRequest._bytes^  s;    xxHHOOKKdii(
  	r@   c                 V    |j                         }|j                         } | ||      S )Nrh  rN   rP   )rQ   rR   _appr   s       r>   rV   zGetBotAppRequest.from_readere  s+    ##%  "t%((r@   Nrf  r`   r@   r>   re  re  L  s>    NN- S 
 ) )r@   re  c                   f    e Zd ZdZdZddddedee   dee   d	ed
   f
dZ	d Z
d Zd Zed        Zy)GetBotCallbackAnswerRequestl   J& iMlNr7   r    re   gamedatapasswordr   c                 J    || _         || _        || _        || _        || _        y)zU
        :returns messages.BotCallbackAnswer: Instance of BotCallbackAnswer.
        Nr7   re   rq  rr  rs  )r=   r7   re   rq  rr  rs  s         r>   r?   z$GetBotCallbackAnswerRequest.__init__p  s'     			 r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z#GetBotCallbackAnswerRequest.resolvez  r   r   c           	      L   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nrp  )rB   r7   re   rq  rr  rs  )rC   r7   r   rD   re   rq  rr  rs  rE   s    r>   rD   z#GetBotCallbackAnswerRequest.to_dict}  s~    .+5dii+JDII%%'PTPYPYkkIIII3=dmmX3V--/
 	
 ]a\i\i
 	
r@   c           	      T   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz        | j                  j                         t        j                  d	| j                        | j                  | j                  du rdn| j                  | j                        | j
                  | j
                  du rdf      S | j
                  j                         f      S )
Nr@   s   Bry   Fr   r{   rz   r|   r}   )
rH   rK   rL   rq  rr  rs  r7   rI   re   rJ   rE   s    r>   rI   z"GetBotCallbackAnswerRequest._bytes  sP   xxKKDII$5e9KqQR\`\e\e\mquqzqz  D  rDWX  JK  L  UY  Ub  Ub  Uj  nr  n{  n{  D  nD  PQ  JK  L  MIIKKdkk*99$		U(:CAUAUVZV_V_A`==(DMMU,BC
  	 JNI]I]I_
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd } | |||||      S )Nr{   rz   r|   ru  )r   r   rN   rO   )rQ   rR   r   _gamerS   r   _data	_passwords           r>   rV   z'GetBotCallbackAnswerRequest.from_reader  s}    !UQY$$&//#19'')EE19,,.IIgEPYZZr@   r.  )rX   rY   rZ   r[   r\   r^   r   r   r]   r?   rs   rD   rI   r_   rV   r`   r@   r>   rp  rp  l  sx    NN!_ !c !$ !\dej\k !  }E  Fa  }b !S
 [ [r@   rp  c                   ~    e Zd ZdZdZddddee   ddd	ed
ee   dee   dee	   dee	   fdZ
d Zd Zd Zed        Zy)GetChatInviteImportersRequestl   N]	> l   
y3 Nr7   r    offset_dateoffset_userr&   r+  	requestedsubscription_expiredru  qc	                 t    || _         || _        || _        || _        || _        || _        || _        || _        y)zY
        :returns messages.ChatInviteImporters: Instance of ChatInviteImporters.
        Nr7   r  r  r+  r  r  ru  r  )	r=   r7   r  r  r+  r  r  ru  r  s	            r>   r?   z&GetChatInviteImportersRequest.__init__  s?     	&&
"$8!	r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   )rn   ro   r7   r   r  rp   s      r>   rs   z%GetChatInviteImportersRequest.resolve  s[     ((v/F/Ftyy/Q)QR	 //f6M6MdN^N^6_0_` *R0_r  c           
         dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         n| j
                  | j                  | j                  | j                  | j                  | j                  d	S )Nr~  )	rB   r7   r  r  r+  r  r  ru  r  )rC   r7   r   rD   r  r  r+  r  r  ru  r  rE   s    r>   rD   z%GetChatInviteImportersRequest.to_dict  s    0+5dii+JDII%%'PTPYPY++9CDDTDTV^9_4++335eieueuZZ$($=$=II

 
	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z        | j                  j                         | j
                  | j
                  du rdn| j                  | j
                        | j                  | j                  du rdn| j                  | j                        | j                  | j                        | j                  j                         t        j                  d
| j                        f      S )Nr@   s   Nry   Fr   rz   rI  r{   r|   r}   )rH   rK   rL   r  r  ru  r  r7   rI   rJ   r  r  r  r+  rE   s    r>   rI   z$GetChatInviteImportersRequest._bytes  s   xxKKDNN$:dnnPU>Uq[\fjff  gH  LP  Le  Le  in  Lnab  tu  v  C  H  H  P  TX  T]  T]  af  Tf  z{  lm  n  w{  w}  w}  wE  IM  IO  IO  SX  IX  rs  ^_  `  aII99$		U(:CAUAUVZV_V_A`66>TVVu_C4;O;OPTPVPV;W##D$4$45##%KKdjj)	
 	 		r@   c           
      Z   |j                         }t        |dz        }t        |dz        }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|j	                         }|j                         }	|j                         }
 | |||	|
||||      S )Nrz   rI  r{   r|   r  )r   r   rN   r   r  )rQ   rR   r   
_requested_subscription_expiredrS   r  _q_offset_date_offset_userr7  s              r>   rV   z)GetChatInviteImportersRequest.from_reader  s    !%!)_
 $UQY$$&19((*EE19%%'BB))+++-"<\Y_ku  Mb  in  rt  u  	ur@   r  )rX   rY   rZ   r[   r\   r   r
   r^   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r~  r~    s    NN_ 8H;M \k tw   EM  NR  ES   px  y}  p~   KS  TW  KX   bj  kn  bo a

 u ur@   r~  c                   B    e Zd ZdZdZdee   fdZd Zd Z	e
d        Zy)	GetChatsRequestiRI   K3 r  c                     || _         yzP
        :returns messages.Chats: Instance of either Chats, ChatsSlice.
        Nr  r=   r  s     r>   r?   zGetChatsRequest.__init__       r@   c                 F    d| j                   g dS | j                   d d  dS )Nr  rB   r  r  rE   s    r>   rD   zGetChatsRequest.to_dict  s/    ""
 	
-1WWQZ
 	
r@   c           
          dj                  ddt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   RIr   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z)GetChatsRequest._bytes.<locals>.<genexpr>  r  r  rH   rK   rL   r   r  rE   s    r>   rI   zGetChatsRequest._bytes  K    xxD#dgg, ?HogkgngnHo@o
  	r@   c                     |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |      S Nr  r   r   rP   r   rQ   rR   r  rB   r   s        r>   rV   zGetChatsRequest.from_reader  Q    v() 	A!!#BJJrN	 c{r@   NrX   rY   rZ   r[   r\   r   r^   r?   rD   rI   r_   rV   r`   r@   r>   r  r    :    NN49 
  r@   r  c                   J    e Zd ZdZdZdddedefdZd Zd	 Zd
 Z	e
d        Zy)GetCommonChatsRequestl   !H r  r   r&   r  r+  c                 .    || _         || _        || _        yr  r   r  r+  )r=   r   r  r+  s       r>   r?   zGetCommonChatsRequest.__init__	  s     
r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetCommonChatsRequest.resolve	  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )Nr  )rB   r   r  r+  )rC   r   r   rD   r  r+  rE   s    r>   rD   zGetCommonChatsRequest.to_dict	  sC    (1;DLL(1St||++-Y]YeYekkZZ	
 	
r@   c           	          dj                  d| j                  j                         t        j                  d| j
                        t        j                  d| j                        f      S )Nr@   s   rG   r}   )rH   r   rI   rK   rL   r  r+  rE   s    r>   rI   zGetCommonChatsRequest._bytes	  sO    xxLL!KKdkk*KKdjj)	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr  )rN   rP   r   )rQ   rR   r   r  r7  s        r>   rV   z!GetCommonChatsRequest.from_reader&	  s9    '')""$"8G6BBr@   Nr   r`   r@   r>   r  r  	  sL    NN  S Y
 C Cr@   r  c                   B    e Zd ZdZdZdee   fdZd Zd Z	e
d        Zy)	GetCustomEmojiDocumentsRequestl   TV3 l    document_idc                     || _         y)zK
        :returns Vector<Document>: This type has no constructors.
        Nr  )r=   r  s     r>   r?   z'GetCustomEmojiDocumentsRequest.__init__2	  r   r@   c                 F    d| j                   g dS | j                   d d  dS )Nr  )rB   r  r  rE   s    r>   rD   z&GetCustomEmojiDocumentsRequest.to_dict8	  s6    1!%!1!1!92
 	
?C?O?OPQ?R
 	
r@   c           
          dj                  ddt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   Tr   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z8GetCustomEmojiDocumentsRequest._bytes.<locals>.<genexpr>A	  )       RBklRXR]R]^bdeRf  RBr  )rH   rK   rL   r   r  rE   s    r>   rI   z%GetCustomEmojiDocumentsRequest._bytes>	  sb    xxD#d6F6F2G H  RBpt  qA  qA  RB  JB
  	r@   c                     |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |      S )Nr  r  )rQ   rR   _document_idrB   r   s        r>   rV   z*GetCustomEmojiDocumentsRequest.from_readerD	  sU    v() 	$A!!#B#	$ |,,r@   Nr  r`   r@   r>   r  r  .	  s:    NN'DI '
 - -r@   r  c                   0    e Zd ZdZdZd Zd Zed        Zy)GetDefaultHistoryTTLRequestiqel   g3` c                 
    ddiS )NrB   r  r`   rE   s    r>   rD   z#GetDefaultHistoryTTLRequest.to_dictS	  r  r@   c                 $    dj                  d      S )Nr@   )s   qer  rE   s    r>   rI   z"GetDefaultHistoryTTLRequest._bytesX	  r  r@   c                      |        S rl   r`   r  s     r>   rV   z'GetDefaultHistoryTTLRequest.from_reader]	  r  r@   Nr  r`   r@   r>   r  r  O	  r  r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetDefaultTagReactionsRequestl   (4{    $[ r   c                     || _         yzb
        :returns messages.Reactions: Instance of either ReactionsNotModified, Reactions.
        Nr   r   s     r>   r?   z&GetDefaultTagReactionsRequest.__init__f	  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   z%GetDefaultTagReactionsRequest.to_dictl	  s    0II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   (4rG   r#  rE   s    r>   rI   z$GetDefaultTagReactionsRequest._bytesr	  -    xxKKdii(
  	r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   z)GetDefaultTagReactionsRequest.from_readerx	  r&  r@   Nrf  r`   r@   r>   r  r  b	  r'  r@   r  c                   @    e Zd ZdZdZdedefdZd Zd Ze	d        Z
y	)
GetDhConfigRequestiP&l   mI versionrandom_lengthc                      || _         || _        y)z_
        :returns messages.DhConfig: Instance of either DhConfigNotModified, DhConfig.
        Nr  r  )r=   r  r  s      r>   r?   zGetDhConfigRequest.__init__	  s     *r@   c                 6    d| j                   | j                  dS )Nr  )rB   r  r  r  rE   s    r>   rD   zGetDhConfigRequest.to_dict	  s    %||!//
 	
r@   c                     dj                  dt        j                  d| j                        t        j                  d| j                        f      S )Nr@   s   P&r}   )rH   rK   rL   r  r  rE   s    r>   rI   zGetDhConfigRequest._bytes	  sA    xxKKdll+KKd001
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  r  )rQ   rR   _version_random_lengths       r>   rV   zGetDhConfigRequest.from_reader	  s'    ??$*8>BBr@   Nrf  r`   r@   r>   r  r  ~	  s?    NN+ +C +
 C Cr@   r  c                   0    e Zd ZdZdZd Zd Zed        Zy)GetDialogFiltersRequestl   _ l   qK c                 
    ddiS )NrB   r  r`   rE   s    r>   rD   zGetDialogFiltersRequest.to_dict	  s    *
 	
r@   c                 $    dj                  d      S )Nr@   )s   r  rE   s    r>   rI   zGetDialogFiltersRequest._bytes	  r  r@   c                      |        S rl   r`   r  s     r>   rV   z#GetDialogFiltersRequest.from_reader	  r  r@   Nr  r`   r@   r>   r  r  	  r  r@   r  c                   J    e Zd ZdZdZdded   fdZd Zd Zd	 Z	e
d
        Zy)GetDialogUnreadMarksRequesti"" !l   J} Nr  r    c                     || _         y)zM
        :returns Vector<DialogPeer>: This type has no constructors.
        Nr  )r=   r  s     r>   r?   z$GetDialogUnreadMarksRequest.__init__	  r   r@   c                    K   | j                   r8|j                  |j                  | j                          d {         | _         y y 7 wrl   )r  rn   ro   rp   s      r>   rs   z#GetDialogUnreadMarksRequest.resolve	  s?     $33&:Q:QRVRbRb:c4cdD 4cru   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r  )rC   r  r   rD   rE   s    r>   rD   z#GetDialogUnreadMarksRequest.to_dict	  sD    .9CDDTDTV^9_4++335
 	
eieueu
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      | j                  | j                  du rdf      S | j                  j	                         f      S )Nr@   s   "" !ry   Fr   rz   )rH   rK   rL   r  rI   rE   s    r>   rI   z"GetDialogUnreadMarksRequest._bytes	  s    xxKKD$4$4$<@P@PTY@Yq_`b##+t/?/?5/HC
  	 PTO_O_OfOfOh
  	r@   c                 d    |j                         }|dz  r|j                         }nd } | |      S )Nrz   r  r   rN   )rQ   rR   r   r  s       r>   rV   z'GetDialogUnreadMarksRequest.from_reader	  s3    !19!//1LL|,,r@   rl   )rX   rY   rZ   r[   r\   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  	  sA    NN'H_$= 'e
 - -r@   r  c                   n    e Zd ZdZdZddee   deddded	ed
ee   dee   fdZ	d Z
d Zd Zed        Zy)GetDialogsRequestl   OKA iRNr  r*  offset_peerr    r+  r   exclude_pinned	folder_idc                 f    || _         || _        || _        || _        || _        || _        || _        y)zj
        :returns messages.Dialogs: Instance of either Dialogs, DialogsSlice, DialogsNotModified.
        Nr  r*  r  r+  r   r  r  )r=   r  r*  r  r+  r   r  r  s           r>   r?   zGetDialogsRequest.__init__	  s8     '"&
	,"r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   rn   ro   r  rp   s      r>   rs   zGetDialogsRequest.resolve	  0      //f6M6MdN^N^6_0_`0_r   c           	         d| j                   | j                  t        | j                  t              r| j                  j                         n| j                  | j                  | j                  | j                  | j                  dS )Nr  )rB   r  r*  r  r+  r   r  r  )
r  r*  rC   r  r   rD   r+  r   r  r  rE   s    r>   rD   zGetDialogsRequest.to_dict	  sh    $++9CDDTDTV^9_4++335eieueuZZII"11	
 		
r@   c                 \   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j                  | j                  du rdnt        j                  d| j                        | j                  | j                        t        j                  d| j                        | j                  j                         t        j                  d| j                        t        j                  d	| j                        f      S )
Nr@   s   Ory   Fr   rz   r{   r}   rG   )rH   rK   rL   r  r  r  r  r*  r  rI   r+  r   rE   s    r>   rI   zGetDialogsRequest._bytes	  s   xxKKD$7$7$?4CVCVZ_C_qefptp~p~  qG  KO  KY  KY  ]b  Kbkl  hi  j  k>>)T^^u-DC6;;W[]a]k]kKl##D$4$45KKdnn-##%KKdjj)KKdii(	
 	 		r@   c           	      ,   |j                         }t        |dz        }|dz  r|j                         }nd }|j                         }|j                         }|j                         }|j                         }|j	                         }	 | |||||	||      S )Nrz   r{   r  )r   r   r  rN   rP   )
rQ   rR   r   _exclude_pinned
_folder_idr  r6  _offset_peerr7  r   s
             r>   rV   zGetDialogsRequest.from_reader
  s    !uqy/19*JJ))+__&
++-"  "|z|cipu  GV  bl  m  	mr@   r8  rX   rY   rZ   r[   r\   r   r
   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  	  s    NN
#HX$6 
#3 
#Ud 
#mp 
#x{ 
#  NV  W[  N\ 
#  nv  wz  n{ 
#a


 m mr@   r  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)GetDiscussionMessageRequestiriDiSr7   r    re   c                      || _         || _        y)zU
        :returns messages.DiscussionMessage: Instance of DiscussionMessage.
        Nr  r  s      r>   r?   z$GetDiscussionMessageRequest.__init__
  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z#GetDiscussionMessageRequest.resolve
  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  r  r  rE   s    r>   rD   z#GetDiscussionMessageRequest.to_dict!
  <    .+5dii+JDII%%'PTPYPYkk
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   riDr}   r  rE   s    r>   rI   z"GetDiscussionMessageRequest._bytes(
  =    xxIIKKdkk*
  	r@   c                 V    |j                         }|j                         } | ||      S r  r  r  s       r>   rV   z'GetDiscussionMessageRequest.from_reader/
  r  r@   Nr   r`   r@   r>   r  r  
  r  r@   r  c                   D    e Zd ZdZdZdededefdZd Z	d Z
ed	        Zy
)GetDocumentByHashRequestl   c i !sha256size	mime_typec                 .    || _         || _        || _        y)zP
        :returns Document: Instance of either DocumentEmpty, Document.
        Nr  r  r  )r=   r  r  r  s       r>   r?   z!GetDocumentByHashRequest.__init__:
  s     	"r@   c                 L    d| j                   | j                  | j                  dS )Nr  )rB   r  r  r  r  rE   s    r>   rD   z GetDocumentByHashRequest.to_dictB
  s$    +kkII	
 	
r@   c                     dj                  d| j                  | j                        t        j                  d| j
                        | j                  | j                        f      S )Nr@   s   rG   )rH   rJ   r  rK   rL   r  r  rE   s    r>   rI   zGetDocumentByHashRequest._bytesJ
  sQ    xx  -KKdii(  0	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr  )rO   rP   r   )rQ   rR   _sha256_size
_mime_types        r>   rV   z$GetDocumentByHashRequest.from_readerR
  s;    %%'  "))+
'DDr@   N)rX   rY   rZ   r[   r\   r]   r^   r   r?   rD   rI   r_   rV   r`   r@   r>   r  r  6
  sF    NN#u #C #C #
 E Er@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetEmojiGroupsRequesti[ΈtU~r   c                     || _         yzh
        :returns messages.EmojiGroups: Instance of either EmojiGroupsNotModified, EmojiGroups.
        Nr   r   s     r>   r?   zGetEmojiGroupsRequest.__init__^
  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   zGetEmojiGroupsRequest.to_dictd
  r!  r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   [Έtr}   r#  rE   s    r>   rI   zGetEmojiGroupsRequest._bytesj
  r  r@   c                 4    |j                         } | |      S r   r  r   s      r>   rV   z!GetEmojiGroupsRequest.from_readerp
  r\  r@   Nrf  r`   r@   r>   r  r  Z
  r'  r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetEmojiKeywordsRequestib5   rF$ 	lang_codec                     || _         yzX
        :returns EmojiKeywordsDifference: Instance of EmojiKeywordsDifference.
        Nr  r=   r  s     r>   r?   z GetEmojiKeywordsRequest.__init__z
       #r@   c                      d| j                   dS )Nr  rB   r  r  rE   s    r>   rD   zGetEmojiKeywordsRequest.to_dict
      *
 	
r@   c                 Z    dj                  d| j                  | j                        f      S )Nr@   s   b5rH   rJ   r  rE   s    r>   rI   zGetEmojiKeywordsRequest._bytes
  s-    xx  0
  	r@   c                 4    |j                         } | |      S Nr  r   rQ   rR   
_lang_codes      r>   rV   z#GetEmojiKeywordsRequest.from_reader
      ))+
Z((r@   Nr   r`   r@   r>   r  r  v
  6    NN## #
 ) )r@   r  c                   @    e Zd ZdZdZdedefdZd Zd Z	e
d        Zy	)
!GetEmojiKeywordsDifferenceRequestir  r  from_versionc                      || _         || _        yr  r  r#  )r=   r  r#  s      r>   r?   z*GetEmojiKeywordsDifferenceRequest.__init__
  s     #(r@   c                 6    d| j                   | j                  dS )Nr"  )rB   r  r#  r%  rE   s    r>   rD   z)GetEmojiKeywordsDifferenceRequest.to_dict
  s    4 --
 	
r@   c                     dj                  d| j                  | j                        t        j                  d| j
                        f      S )Nr@   s   r}   )rH   rJ   r  rK   rL   r#  rE   s    r>   rI   z(GetEmojiKeywordsDifferenceRequest._bytes
  sA    xx  0KKd//0
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr%  r   r   )rQ   rR   r  _from_versions       r>   rV   z-GetEmojiKeywordsDifferenceRequest.from_reader
  s)    ))+
)ZmDDr@   NrX   rY   rZ   r[   r\   r   r^   r?   rD   rI   r_   rV   r`   r@   r>   r"  r"  
  s?    NN)# )S )
 E Er@   r"  c                   B    e Zd ZdZdZdee   fdZd Zd Z	e
d        Zy)	 GetEmojiKeywordsLanguagesRequesticNl   S+O 
lang_codesc                     || _         y)zP
        :returns Vector<EmojiLanguage>: This type has no constructors.
        Nr.  )r=   r.  s     r>   r?   z)GetEmojiKeywordsLanguagesRequest.__init__
       %r@   c                 F    d| j                   g dS | j                   d d  dS )Nr-  )rB   r.  r0  rE   s    r>   rD   z(GetEmojiKeywordsLanguagesRequest.to_dict
  s1    3 $ 7"
 	
=A__Q=O
 	
r@   c           
           dj                  ddt        j                  dt         j                              dj                   fd j                  D              f      S )Nr@   s   cNr   r}   c              3   @   K   | ]  }j                  |        y wrl   rJ   r   r   r=   s     r>   r   z:GetEmojiKeywordsLanguagesRequest._bytes.<locals>.<genexpr>
  s'       QCmnQUQeQefgQh  QC   )rH   rK   rL   r   r.  rE   s   `r>   rI   z'GetEmojiKeywordsLanguagesRequest._bytes
  sa    xxD#doo2F G  QCrv  sB  sB  QC  IC
  	r@   c                     |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |      S )Nr0  )r   r   r   r   )rQ   rR   _lang_codesrB   r   s        r>   rV   z,GetEmojiKeywordsLanguagesRequest.from_reader
  sU    v() 	#A%%'Br"	# k**r@   N)rX   rY   rZ   r[   r\   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r-  r-  
  s:    NN%49 %
 + +r@   r-  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	!GetEmojiProfilePhotoGroupsRequestiH!r  r   c                     || _         yr	  r   r   s     r>   r?   z*GetEmojiProfilePhotoGroupsRequest.__init__
  r   r@   c                      d| j                   dS )Nr;  r   r   rE   s    r>   rD   z)GetEmojiProfilePhotoGroupsRequest.to_dict
  s    4II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   H!r}   r#  rE   s    r>   rI   z(GetEmojiProfilePhotoGroupsRequest._bytes
  r  r@   c                 4    |j                         } | |      S r   r  r   s      r>   rV   z-GetEmojiProfilePhotoGroupsRequest.from_reader
  r\  r@   Nrf  r`   r@   r>   r;  r;  
  r'  r@   r;  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetEmojiStatusGroupsRequestiV.r  r   c                     || _         yr	  r   r   s     r>   r?   z$GetEmojiStatusGroupsRequest.__init__
  r   r@   c                      d| j                   dS )NrA  r   r   rE   s    r>   rD   z#GetEmojiStatusGroupsRequest.to_dict
  s    .II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   V.r}   r#  rE   s    r>   rI   z"GetEmojiStatusGroupsRequest._bytes
  r  r@   c                 4    |j                         } | |      S r   r  r   s      r>   rV   z'GetEmojiStatusGroupsRequest.from_reader  r\  r@   Nrf  r`   r@   r>   rA  rA  
  r'  r@   rA  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetEmojiStickerGroupsRequesti@r  r   c                     || _         yr	  r   r   s     r>   r?   z%GetEmojiStickerGroupsRequest.__init__  r   r@   c                      d| j                   dS )NrG  r   r   rE   s    r>   rD   z$GetEmojiStickerGroupsRequest.to_dict  ra  r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   @r}   r#  rE   s    r>   rI   z#GetEmojiStickerGroupsRequest._bytes  -    xxKKdii(
  	r@   c                 4    |j                         } | |      S r   r  r   s      r>   rV   z(GetEmojiStickerGroupsRequest.from_reader!  r\  r@   Nrf  r`   r@   r>   rG  rG    r'  r@   rG  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetEmojiStickersRequestl   !w r  r   c                     || _         yr  r   r   s     r>   r?   z GetEmojiStickersRequest.__init__+  r   r@   c                      d| j                   dS )NrN  r   r   rE   s    r>   rD   zGetEmojiStickersRequest.to_dict1      *II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   rG   r#  rE   s    r>   rI   zGetEmojiStickersRequest._bytes7  r$  r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   z#GetEmojiStickersRequest.from_reader=  r&  r@   Nrf  r`   r@   r>   rN  rN  '  r'  r@   rN  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetEmojiURLRequestl   &b+ ir  c                     || _         y)z:
        :returns EmojiURL: Instance of EmojiURL.
        Nr  r  s     r>   r?   zGetEmojiURLRequest.__init__G  r  r@   c                      d| j                   dS )NrU  r  r  rE   s    r>   rD   zGetEmojiURLRequest.to_dictM  s    %
 	
r@   c                 Z    dj                  d| j                  | j                        f      S )Nr@   s   &r  rE   s    r>   rI   zGetEmojiURLRequest._bytesS  s-    xx  0
  	r@   c                 4    |j                         } | |      S r  r   r  s      r>   rV   zGetEmojiURLRequest.from_readerY  r  r@   Nr   r`   r@   r>   rU  rU  C  r   r@   rU  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)GetExportedChatInviteRequesti\otsrb  r7   r    ru  c                      || _         || _        yrh  rw  rx  s      r>   r?   z%GetExportedChatInviteRequest.__init__c  ry  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z$GetExportedChatInviteRequest.resolvej  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr[  r|  r}  rE   s    r>   rD   z$GetExportedChatInviteRequest.to_dictm  s<    /+5dii+JDII%%'PTPYPYII
 	
r@   c                     dj                  d| j                  j                         | j                  | j                        f      S )Nr@   s   \otsr  rE   s    r>   rI   z#GetExportedChatInviteRequest._bytest  s=    xxII  +
  	r@   c                 V    |j                         }|j                         } | ||      S r  r  r  s       r>   rV   z(GetExportedChatInviteRequest.from_reader{  r  r@   Nr  r`   r@   r>   r[  r[  _  r  r@   r[  c                   j    e Zd ZdZdZdddddded	ee   d
ee   dee	   fdZ
d Zd Zd Zed        Zy)GetExportedChatInvitesRequestl   #kE iq8=`Nr7   r    r  r&   r+  rc  r  offset_linkc                 X    || _         || _        || _        || _        || _        || _        y)zY
        :returns messages.ExportedChatInvites: Instance of ExportedChatInvites.
        Nr7   r  r+  rc  r  rc  )r=   r7   r  r+  rc  r  rc  s          r>   r?   z&GetExportedChatInvitesRequest.__init__  s0     	 
&&r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   r  rp   s      r>   rs   z%GetExportedChatInvitesRequest.resolve  r  r  c                 ^   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  | j                  | j                  dS )Nrb  )rB   r7   r  r+  rc  r  rc  )	rC   r7   r   rD   r  r+  rc  r  rc  rE   s    r>   rD   z%GetExportedChatInvitesRequest.to_dict  s{    0+5dii+JDII%%'PTPYPY3=dmmX3V--/\`\i\iZZ||++++
 	
r@   c                 T   | j                   s| j                   | j                  sG| j                  ;| j                   | j                   du r| j                  | j                  du sJ d       dj                  dt        j                  d| j
                  | j
                  du rdnd| j                   | j                   du rdndz  | j                  | j                  du rdndz        | j                  j                         | j                  j                         | j                   | j                   du rdn| j                  | j                         | j                  | j                  du rdn| j                  | j                        t        j                  d	| j                        f      S )
NFzToffset_date, offset_link parameters must all be False-y (like None) or all me True-yr@   s   ry   r   rI  r|   r}   )r  rc  rH   rK   rL   rc  r7   rI   r  r  rJ   r+  rE   s    r>   rI   z$GetExportedChatInvitesRequest._bytes  s$   !!T%5%5%AHXHX\`\l\l\x  AE  AQ  AQ  AY  ]a  ]m  ]m  qv  ]v  }A  }M  }M  }U  Y]  Yi  Yi  mr  Yr  	L  vL  	L  txxKKDLL$8DLLE<QqWXbfbrbrbz  C  O  O  SX  X]^  ^_  `  im  iy  iy  iA  EI  EU  EU  Y^  E^  de  de  f  gIIMM  "##+t/?/?5/HCtOfOfgkgwgwOx##+t/?/?5/HCtOcOcdhdtdtOuKKdjj)
  	r@   c                    |j                         }t        |dz        }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j	                         }nd }|j                         } | ||||||      S )NrI  r|   re  r  )	rQ   rR   r   rn  rS   r  r  _offset_linkr7  s	            r>   rV   z)GetExportedChatInvitesRequest.from_reader  s    !	?$$&((*	19!--/LL19!//1LL"	_k  zF  G  	Gr@   r.  rX   rY   rZ   r[   r\   r^   r   r   r
   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   rb  rb    s    NN	'_ 	' 	'PS 	'^fgk^l 	'  AI  JR  AS 	'  go  ps  gt 	'[	

 G Gr@   rb  c                   L    e Zd ZdZdZdddee   fdZd Zd Z	d	 Z
ed
        Zy)GetExtendedMediaRequestl   	 r   r7   r    r  c                      || _         || _        yr   r  r  s      r>   r?   z GetExtendedMediaRequest.__init__  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetExtendedMediaRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g dS | j                  d d  dS )Nrm  r  r  rE   s    r>   rD   zGetExtendedMediaRequest.to_dict  sW    *+5dii+JDII%%'PTPYPY"
 	
 .2WWQZ
 	
r@   c                     dj                  d| j                  j                         dt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z1GetExtendedMediaRequest._bytes.<locals>.<genexpr>  r  r  r  rE   s    r>   rI   zGetExtendedMediaRequest._bytes  [    xxIID#dgg, ?HogkgngnHo@o
  	r@   c                     |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S r	  r   r
  s         r>   rV   z#GetExtendedMediaRequest.from_reader  r  r@   Nr  r`   r@   r>   rm  rm    r  r@   rm  c                   L    e Zd ZdZdZdddee   fdZd Zd Z	d	 Z
ed
        Zy)GetFactCheckRequestl   Es l   Lw r7   r    re   c                      || _         || _        y)zL
        :returns Vector<FactCheck>: This type has no constructors.
        Nr  r  s      r>   r?   zGetFactCheckRequest.__init__  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetFactCheckRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g dS | j                  d d  dS )Nrv  r  r  rE   s    r>   rD   zGetFactCheckRequest.to_dict  sX    &+5dii+JDII%%'PTPYPY KK/b
 	
 6:[[^
 	
r@   c                     dj                  d| j                  j                         dt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   ͹r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z-GetFactCheckRequest._bytes.<locals>.<genexpr>        LwfgV[[Y]_`MaLwr  )rH   r7   rI   rK   rL   r   re   rE   s    r>   rI   zGetFactCheckRequest._bytes  s\    xxIID#dkk2B CCHHLwkokvkvLwDw
  	r@   c                     |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S r  r   )rQ   rR   rS   r   rB   r   s         r>   rV   zGetFactCheckRequest.from_reader  a    $$&v() 	A"BNN2	 g..r@   Nr  r`   r@   r>   rv  rv    G    NN_ d3i S
 / /r@   rv  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetFavedStickersRequestil   o r   c                     || _         y)zn
        :returns messages.FavedStickers: Instance of either FavedStickersNotModified, FavedStickers.
        Nr   r   s     r>   r?   z GetFavedStickersRequest.__init__  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   zGetFavedStickersRequest.to_dict  rQ  r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   rG   r#  rE   s    r>   rI   zGetFavedStickersRequest._bytes  r$  r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   z#GetFavedStickersRequest.from_reader%  r&  r@   Nrf  r`   r@   r>   r  r    6    NNS 
  r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetFeaturedEmojiStickersRequesti6g"&r   c                     || _         yzw
        :returns messages.FeaturedStickers: Instance of either FeaturedStickersNotModified, FeaturedStickers.
        Nr   r   s     r>   r?   z(GetFeaturedEmojiStickersRequest.__init__/  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   z'GetFeaturedEmojiStickersRequest.to_dict5  s    2II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   6grG   r#  rE   s    r>   rI   z&GetFeaturedEmojiStickersRequest._bytes;  r  r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   z+GetFeaturedEmojiStickersRequest.from_readerA  r&  r@   Nrf  r`   r@   r>   r  r  +  r  r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetFeaturedStickersRequestixdr  r   c                     || _         yr  r   r   s     r>   r?   z#GetFeaturedStickersRequest.__init__K  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   z"GetFeaturedStickersRequest.to_dictQ  rX  r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   xdrG   r#  rE   s    r>   rI   z!GetFeaturedStickersRequest._bytesW  r  r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   z&GetFeaturedStickersRequest.from_reader]  r&  r@   Nrf  r`   r@   r>   r  r  G  r'  r@   r  c                   d    e Zd ZdZdZddddee   deded	ed
ee   fdZ	d Z
d Zd Zed        Zy)GetForumTopicsRequesti{;   >: Nr7   r    r  r*  offset_topicr+  r  c                 X    || _         || _        || _        || _        || _        || _        yzI
        :returns messages.ForumTopics: Instance of ForumTopics.
        Nr7   r  r*  r  r+  r  )r=   r7   r  r*  r  r+  r  s          r>   r?   zGetForumTopicsRequest.__init__g  s0     	&"(
r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetForumTopicsRequest.resolver  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  dS )Nr  )rB   r7   r  r*  r  r+  r  )	rC   r7   r   rD   r  r*  r  r+  r  rE   s    r>   rD   zGetForumTopicsRequest.to_dictu  s\    (+5dii+JDII%%'PTPYPY++ --ZZ
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  | j                  du rdn| j                  | j                        | j                  | j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        f      S )Nr@   s   {;ry   Fr   rz   r}   )rH   rK   rL   r  r7   rI   rJ   r  r  r*  r  r+  rE   s    r>   rI   zGetForumTopicsRequest._bytes  s    xxKKDFFNdffoq1NII66>TVVu_C4;O;OPTPVPV;W##D$4$45KKdnn-KKd//0KKdjj)	
 	 		r@   c                    |j                         }|j                         }|dz  r|j                         }nd }|j                         }|j                         }|j                         }|j                         } | ||||||      S )Nrz   r  )r   rN   r   r  )	rQ   rR   r   rS   r  r  r6  _offset_topicr7  s	            r>   rV   z!GetForumTopicsRequest.from_reader  s    !$$&19%%'BB))+__&
)"<:\iqw{}~~r@   rl   )rX   rY   rZ   r[   r\   r   r
   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  c  s|    NN	_ 	8H;M 	Z] 	mp 	y| 	  BJ  KN  BO 	S	

  r@   r  c                   L    e Zd ZdZdZdddee   fdZd Zd Z	d	 Z
ed
        Zy)GetForumTopicsByIDRequestl   J^ r  r7   r    topicsc                      || _         || _        yr  r7   r  )r=   r7   r  s      r>   r?   z"GetForumTopicsByIDRequest.__init__  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z!GetForumTopicsByIDRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g dS | j                  d d  dS )Nr  )rB   r7   r  )rC   r7   r   rD   r  rE   s    r>   rD   z!GetForumTopicsByIDRequest.to_dict  sX    ,+5dii+JDII%%'PTPYPY KK/b
 	
 6:[[^
 	
r@   c                     dj                  d| j                  j                         dt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   J
r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z3GetForumTopicsByIDRequest._bytes.<locals>.<genexpr>  r|  r  )rH   r7   rI   rK   rL   r   r  rE   s    r>   rI   z GetForumTopicsByIDRequest._bytes  s\    xxIID#dkk2B CCHHLwkokvkvLwDw
  	r@   c                     |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S )Nr  r   )rQ   rR   rS   _topicsrB   r   s         r>   rV   z%GetForumTopicsByIDRequest.from_reader  r~  r@   Nr  r`   r@   r>   r  r    r  r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetFullChatRequestl   4`] i	QZ"r   c                     || _         y)zC
        :returns messages.ChatFull: Instance of ChatFull.
        NrY  rZ  s     r>   r?   zGetFullChatRequest.__init__  r[  r@   c                      d| j                   dS )Nr  r]  rY  rE   s    r>   rD   zGetFullChatRequest.to_dict      %||
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   4rG   r_  rE   s    r>   rI   zGetFullChatRequest._bytes  -    xxKKdll+
  	r@   c                 4    |j                         } | |      S rb  rc  rd  s      r>   rV   zGetFullChatRequest.from_reader  re  r@   Nrf  r`   r@   r>   r  r    rg  r@   r  c                   J    e Zd ZdZdZdddeddfdZd	 Zd
 Zd Z	e
d        Zy)GetGameHighScoresRequestl   dDP lr7   r    r  r   r&   c                 .    || _         || _        || _        yzG
        :returns messages.HighScores: Instance of HighScores.
        Nr7   r  r   )r=   r7   r  r   s       r>   r?   z!GetGameHighScoresRequest.__init__  s     	r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   rn   ro   r7   r   r   rp   s      r>   rs   z GetGameHighScoresRequest.resolve  X     ((v/F/Ftyy/Q)QR	++&2I2I$,,2W,WX *R,Wr  c                     dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         dS | j
                  dS )Nr  )rB   r7   r  r   )rC   r7   r   rD   r  r   rE   s    r>   rD   z GetGameHighScoresRequest.to_dict  sp    ++5dii+JDII%%'PTPYPY''1;DLL(1St||++-	
 	
 Z^YeYe	
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        | j                  j                         f      S )Nr@   s   d"r}   )rH   r7   rI   rK   rL   r  r   rE   s    r>   rI   zGetGameHighScoresRequest._bytes  sM    xxIIKKdgg&LL!	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr  r  )rQ   rR   rS   r  r   s        r>   rV   z$GetGameHighScoresRequest.from_reader   s9    $$&oo'')#x88r@   Nr   r`   r@   r>   r  r    sJ    NN_ #  Y
 9 9r@   r  c                   d    e Zd ZdZdZdddedee   deded	ed
edefdZd Z	d Z
d Zed        Zy)GetHistoryRequesti#D   ^h) r7   r    r*  r  
add_offsetr+  r  min_idr   c	                 t    || _         || _        || _        || _        || _        || _        || _        || _        yz
        :returns messages.Messages: Instance of either Messages, MessagesSlice, ChannelMessages, MessagesNotModified.
        Nr7   r*  r  r  r+  r  r  r   )	r=   r7   r*  r  r  r+  r  r  r   s	            r>   r?   zGetHistoryRequest.__init__  s=     	"&$
	r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetHistoryRequest.resolve  r   r   c           
      "   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  | j                  | j                  d	S )Nr  )	rB   r7   r*  r  r  r+  r  r  r   )rC   r7   r   rD   r*  r  r  r+  r  r  r   rE   s    r>   rD   zGetHistoryRequest.to_dict  sh    $+5dii+JDII%%'PTPYPY++//ZZkkkkII

 
	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        | j                  | j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        f	      S )Nr@   s   #Dr}   rG   )rH   r7   rI   rK   rL   r*  r  r  r  r+  r  r  r   rE   s    r>   rI   zGetHistoryRequest._bytes)  s    xxIIKKdnn-##D$4$45KKdoo.KKdjj)KKdkk*KKdkk*KKdii(

 
 
	r@   c           
      "   |j                         }|j                         }|j                         }|j                         }|j                         }|j                         }|j                         }|j                         }	 | ||||||||	      S )Nr  rN   r   r  rP   )
rQ   rR   rS   r6  r  _add_offsetr7  r  _min_idr   s
             r>   rV   zGetHistoryRequest.from_reader6  s    $$&__&
))+oo'"//#//#  "Zems  }D  MT  [`  a  	ar@   Nr  r`   r@   r>   r  r    s    NN_  8T\K] kn wz   EH   RU   ]` S
 	a 	ar@   r  c                   Z    e Zd ZdZdZdddddded	ed
ed   f
dZd Zd Z	d Z
ed        Zy)GetInlineBotResultsRequestiNQi>Nr=  r&   r7   r    queryoffset	geo_pointr   c                 J    || _         || _        || _        || _        || _        y)zG
        :returns messages.BotResults: Instance of BotResults.
        Nr=  r7   r  r  r  )r=   r=  r7   r  r  r  s         r>   r?   z#GetInlineBotResultsRequest.__init__G  s'     	
"r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   r   ro   r=  rn   r7   rp   s      r>   rs   z"GetInlineBotResultsRequest.resolveQ  X     ''f.E.Edhh.O(OP((v/F/Ftyy/Q)QR	 )P)Qr  c           	         dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r=  r7   r  r  r  )rC   r=  r   rD   r7   r  r  r  rE   s    r>   rD   z"GetInlineBotResultsRequest.to_dictU  s    -)3DHHh)G488##%TXX+5dii+JDII%%'PTPYPYZZkk5?PX5Y//1
 	
 `d_m_m
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  j                         | j                  | j                  du rdn| j                  j                         | j                  | j                        | j                  | j                        f      S )Nr@   s   NQry   Fr   rz   )
rH   rK   rL   r  r=  rI   r7   rJ   r  r  rE   s    r>   rI   z!GetInlineBotResultsRequest._bytes_  s    xxKKDNN$:dnnPU>Uq[\^HHOOII>>)T^^u-DC4>>K`K`Kb  ,  -
  	r@   c                     |j                         }|j                         }|j                         }|dz  r|j                         }nd }|j                         }|j                         } | |||||      S )Nrz   r  r   rN   r   )rQ   rR   r   rD  rS   
_geo_point_query_offsets           r>   rV   z&GetInlineBotResultsRequest.from_readerj  st    !##%$$&19--/JJ%%'&&(t%vgQ[\\r@   rl   )rX   rY   rZ   r[   r\   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  C  sj    NN#O #? #3 #X[ #hp  rE  iF #S
	 ] ]r@   r  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
GetInlineGameHighScoresRequesti^cr  c                      || _         || _        yr  r  r   )r=   r  r   s      r>   r?   z'GetInlineGameHighScoresRequest.__init__}  s     r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z&GetInlineGameHighScoresRequest.resolve  r   r   c                 
   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r  r   )rC   r  r   rD   r   rE   s    r>   rD   z&GetInlineGameHighScoresRequest.to_dict  sd    1'1$''8'D$''//#$''1;DLL(1St||++-
 	
 Z^YeYe
 	
r@   c                     dj                  d| j                  j                         | j                  j                         f      S )Nr@   s   ^c)rH   r  rI   r   rE   s    r>   rI   z%GetInlineGameHighScoresRequest._bytes  s9    xxGGNNLL!
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  r   )rQ   rR   r  r   s       r>   rV   z*GetInlineGameHighScoresRequest.from_reader  s+    ""$'')c8,,r@   N)r  r   r   r&   r   r`   r@   r>   r  r  y  s5    NNY
 - -r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetMaskStickersRequestidr  r   c                     || _         yr  r   r   s     r>   r?   zGetMaskStickersRequest.__init__  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   zGetMaskStickersRequest.to_dict  r   r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   drG   r#  rE   s    r>   rI   zGetMaskStickersRequest._bytes  rK  r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   z"GetMaskStickersRequest.from_reader  r&  r@   Nrf  r`   r@   r>   r  r    r'  r@   r  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)GetMessageEditDataRequestl   6M{ l   v r7   r    r  c                      || _         || _        y)zQ
        :returns messages.MessageEditData: Instance of MessageEditData.
        Nr  r  s      r>   r?   z"GetMessageEditDataRequest.__init__  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z!GetMessageEditDataRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  r  r  rE   s    r>   rD   z!GetMessageEditDataRequest.to_dict  s<    ,+5dii+JDII%%'PTPYPY''
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   6r}   )rH   r7   rI   rK   rL   r  rE   s    r>   rI   z GetMessageEditDataRequest._bytes  s=    xxIIKKdgg&
  	r@   c                 V    |j                         }|j                         } | ||      S r	  r  )rQ   rR   rS   r  s       r>   rV   z%GetMessageEditDataRequest.from_reader  s)    $$&oo#&&r@   Nr   r`   r@   r>   r  r    sC    NN_ # S
 ' 'r@   r  c                   `    e Zd ZdZdZddddededed	   d
ee   f
dZd Z	d Z
d Zed        Zy)GetMessageReactionsListRequestiH?Fi`Nr7   r    r  r+  reactionr+   r  c                 J    || _         || _        || _        || _        || _        y)z[
        :returns messages.MessageReactionsList: Instance of MessageReactionsList.
        Nr7   r  r+  r  r  )r=   r7   r  r+  r  r  s         r>   r?   z'GetMessageReactionsListRequest.__init__  s'     	
 r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z&GetMessageReactionsListRequest.resolve  r   r   c                 H   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  t        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  )rB   r7   r  r+  r  r  )rC   r7   r   rD   r  r+  r  r  rE   s    r>   rD   z&GetMessageReactionsListRequest.to_dict  sp    1+5dii+JDII%%'PTPYPY''ZZ3=dmmX3V--/\`\i\ikk
 	
r@   c                 J   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j
                  j                         t        j                  d| j                        | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdn| j                  | j                        t        j                  d| j                        f      S )	Nr@   s   H?Fry   Fr   rz   r{   r}   )
rH   rK   rL   r  r  r7   rI   r  rJ   r+  rE   s    r>   rI   z%GetMessageReactionsListRequest._bytes  s   xxKKDMM$9T]]e=SqYZdhdododw{  |G  |G  KP  |P_`  VW  X  YIIKKdgg&==(DMMU,BCI]I]I_;;&$++*>CTEYEYZ^ZeZeEfKKdjj)
  	r@   c                     |j                         }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|j                         } | |||||      S )Nrz   r{   r  r  )rQ   rR   r   rS   r  	_reactionr  r7  s           r>   rV   z*GetMessageReactionsListRequest.from_reader  s|    !$$&oo19,,.II19**,GG"#ViPWXXr@   r8  )rX   rY   rZ   r[   r\   r^   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    so    NN_ # c XVdMe t|  ~A  uB S
	 Y Yr@   r  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)!GetMessageReadParticipantsRequestiO1i[E!r7   r    re   c                      || _         || _        y)zV
        :returns Vector<ReadParticipantDate>: This type has no constructors.
        Nr  r  s      r>   r?   z*GetMessageReadParticipantsRequest.__init__  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z)GetMessageReadParticipantsRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr   r  r  rE   s    r>   rD   z)GetMessageReadParticipantsRequest.to_dict!  s<    4+5dii+JDII%%'PTPYPYkk
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   O1r}   r  rE   s    r>   rI   z(GetMessageReadParticipantsRequest._bytes(  =    xxIIKKdkk*
  	r@   c                 V    |j                         }|j                         } | ||      S r  r  r  s       r>   rV   z-GetMessageReadParticipantsRequest.from_reader/  r  r@   Nr   r`   r@   r>   r   r     r  r@   r   c                   H    e Zd ZdZdZded   fdZd Zd Zd Z	e
d	        Zy
)GetMessagesRequestiecr  r  r   c                     || _         yr  r  r  s     r>   r?   zGetMessagesRequest.__init__:  r  r@   c                    K   g }| j                   D ]"  }|j                  |j                  |             $ || _         y wrl   )r  r   get_input_messager7  s        r>   rs   zGetMessagesRequest.resolve@  s>     '' 	5BKK//34	5 s   <>c                     d| j                   g dS | j                   D cg c]$  }t        |t              r|j                         n|& c}dS c c}w )Nr  r  )r  rC   r   rD   r   s     r>   rD   zGetMessagesRequest.to_dictG  sQ    %"
 	
eielel-m`aZ8=TaiikZ[.[-m
 	
-m   )Ac           
          dj                  ddt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   ecr   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z,GetMessagesRequest._bytes.<locals>.<genexpr>P  s     HeXYHer   r  rE   s    r>   rI   zGetMessagesRequest._bytesM  sK    xxD#dgg, ?He]a]d]dHe@e
  	r@   c                     |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |      S r  r   r   rN   r   r  s        r>   rV   zGetMessagesRequest.from_readerS  sQ    v() 	A%%'BJJrN	 c{r@   NrX   rY   rZ   r[   r\   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  6  sA    NN4 23 
  r@   r  c                   L    e Zd ZdZdZdddee   fdZd Zd Z	d	 Z
ed
        Zy)GetMessagesReactionsRequestl   u r   r7   r    r  c                      || _         || _        yr   r  r  s      r>   r?   z$GetMessagesReactionsRequest.__init__b  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z#GetMessagesReactionsRequest.resolvei  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g dS | j                  d d  dS )Nr  r  r  rE   s    r>   rD   z#GetMessagesReactionsRequest.to_dictl  W    .+5dii+JDII%%'PTPYPY"
 	
 .2WWQZ
 	
r@   c                     dj                  d| j                  j                         dt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   携r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z5GetMessagesReactionsRequest._bytes.<locals>.<genexpr>w  r  r  r  rE   s    r>   rI   z"GetMessagesReactionsRequest._bytess  rs  r@   c                     |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S r	  r   r
  s         r>   rV   z'GetMessagesReactionsRequest.from_readerz  r  r@   Nr  r`   r@   r>   r  r  ^  r  r@   r  c                   P    e Zd ZdZdZdddee   defdZd Z	d	 Z
d
 Zed        Zy)GetMessagesViewsRequestiӄWl   kk_ r7   r    r  	incrementc                 .    || _         || _        || _        y)zK
        :returns messages.MessageViews: Instance of MessageViews.
        Nr7   r  r  )r=   r7   r  r  s       r>   r?   z GetMessagesViewsRequest.__init__  s     	"r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetMessagesViewsRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g n| j                  d d  | j
                  dS )Nr  )rB   r7   r  r  )rC   r7   r   rD   r  r  rE   s    r>   rD   zGetMessagesViewsRequest.to_dict  sQ    *+5dii+JDII%%'PTPYPY"TWWQZ	
 	
r@   c                    dj                  d| j                  j                         dt        j                  dt        | j                              dj                  d | j                  D              | j                  rdf      S df      S )Nr@   s   ӄWr   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z1GetMessagesViewsRequest._bytes.<locals>.<genexpr>  r  r  r:  r;  )rH   r7   rI   rK   rL   r   r  r  rE   s    r>   rI   zGetMessagesViewsRequest._bytes  sx    xxIID#dgg, ?HogkgngnHo@o!^^M	
  	 2?	
  	r@   c                     |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % |j	                         } | |||      S )Nr   )rN   r   r   r   r=  )rQ   rR   rS   r  rB   r   
_increments          r>   rV   z#GetMessagesViewsRequest.from_reader  sp    $$&v() 	A"BJJrN	 '')
#<<r@   N)rX   rY   rZ   r[   r\   r   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    sN    NN#_ #$s) # #S
 	= 	=r@   r  c                   @    e Zd ZdZdZdedefdZd Zd Ze	d        Z
y	)
GetMyStickersRequestl   ak! l   
5hc r*  r+  c                      || _         || _        y)zG
        :returns messages.MyStickers: Instance of MyStickers.
        Nr*  r+  )r=   r*  r+  s      r>   r?   zGetMyStickersRequest.__init__  s     #
r@   c                 6    d| j                   | j                  dS )Nr(  )rB   r*  r+  r*  rE   s    r>   rD   zGetMyStickersRequest.to_dict  s    'ZZ
 	
r@   c                     dj                  dt        j                  d| j                        t        j                  d| j                        f      S )Nr@   s   rG   r}   )rH   rK   rL   r*  r+  rE   s    r>   rI   zGetMyStickersRequest._bytes  s?    xxKKdnn-KKdjj)
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr*  )rP   r   )rQ   rR   r6  r7  s       r>   rV   z GetMyStickersRequest.from_reader  s)    %%'
"Zv66r@   Nrf  r`   r@   r>   r(  r(    s=    NN# c 
 7 7r@   r(  c                   D    e Zd ZdZdZdededefdZd Zd Ze	d	        Z
y
)GetOldFeaturedStickersRequesti~r  r  r+  r   c                 .    || _         || _        || _        yr  r  r+  r   )r=   r  r+  r   s       r>   r?   z&GetOldFeaturedStickersRequest.__init__  s     
	r@   c                 L    d| j                   | j                  | j                  dS )Nr/  )rB   r  r+  r   r1  rE   s    r>   rD   z%GetOldFeaturedStickersRequest.to_dict  s$    0kkZZII	
 	
r@   c           	          dj                  dt        j                  d| j                        t        j                  d| j                        t        j                  d| j
                        f      S )Nr@   s   ~r}   rG   )rH   rK   rL   r  r+  r   rE   s    r>   rI   z$GetOldFeaturedStickersRequest._bytes  sQ    xxKKdkk*KKdjj)KKdii(	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr1  r   rP   )rQ   rR   r  r7  r   s        r>   rV   z)GetOldFeaturedStickersRequest.from_reader  s7    //#"  "'e<<r@   Nrf  r`   r@   r>   r/  r/    sD    NNs 3 c 
 = =r@   r/  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
GetOnlinesRequestiP+nl   : c                     || _         y)z@
        :returns ChatOnlines: Instance of ChatOnlines.
        Nr   r   s     r>   r?   zGetOnlinesRequest.__init__  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetOnlinesRequest.resolve   r   r   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nr7  r   r   rE   s    r>   rD   zGetOnlinesRequest.to_dict  ?    $+5dii+JDII%%'
 	
PTPYPY
 	
r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   P+nr   rE   s    r>   rI   zGetOnlinesRequest._bytes	  s+    xxII
  	r@   c                 4    |j                         } | |      S r   r   r   s      r>   rV   zGetOnlinesRequest.from_reader  r   r@   Nr   r   r`   r@   r>   r7  r7    r   r@   r7  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)GetOutboxReadDateRequestl   ]~ iƃQor7   r    re   c                      || _         || _        y)zF
        :returns OutboxReadDate: Instance of OutboxReadDate.
        Nr  r  s      r>   r?   z!GetOutboxReadDateRequest.__init__  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z GetOutboxReadDateRequest.resolve   r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr?  r  r  rE   s    r>   rD   z GetOutboxReadDateRequest.to_dict#  s<    ++5dii+JDII%%'PTPYPYkk
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   ]Kr}   r  rE   s    r>   rI   zGetOutboxReadDateRequest._bytes*  r  r@   c                 V    |j                         }|j                         } | ||      S r  r  r  s       r>   rV   z$GetOutboxReadDateRequest.from_reader1  r  r@   Nr   r`   r@   r>   r?  r?    r  r@   r?  c                   0    e Zd ZdZdZd Zd Zed        Zy)GetPaidReactionPrivacyRequestiU$Gr   c                 
    ddiS )NrB   rF  r`   rE   s    r>   rD   z%GetPaidReactionPrivacyRequest.to_dict<  s    0
 	
r@   c                 $    dj                  d      S )Nr@   )s   U$Gr  rE   s    r>   rI   z$GetPaidReactionPrivacyRequest._bytesA  r  r@   c                      |        S rl   r`   r  s     r>   rV   z)GetPaidReactionPrivacyRequest.from_readerF  r  r@   Nr  r`   r@   r>   rF  rF  8  r  r@   rF  c                   H    e Zd ZdZdZded   fdZd Zd Zd Z	e
d	        Zy
)GetPeerDialogsRequestl   <H 2:peersr   c                     || _         yzI
        :returns messages.PeerDialogs: Instance of PeerDialogs.
        NrM  )r=   rM  s     r>   r?   zGetPeerDialogsRequest.__init__O  rO  r@   c                    K   g }| j                   D ]*  }|j                  |j                  |       d {          , || _         y 7 wrl   )rM  r   _get_input_dialogr7  s        r>   rs   zGetPeerDialogsRequest.resolveU  F     ** 	<BKKf66r::;	< 
 ;   1AA
Ac                     d| j                   g dS | j                   D cg c]$  }t        |t              r|j                         n|& c}dS c c}w )NrK  )rB   rM  )rM  rC   r   rD   r   s     r>   rD   zGetPeerDialogsRequest.to_dict\  sS    (::-R
 	
kokuku3vfg:aQYCZAIIK`a4a3v
 	
3vr  c           
          dj                  ddt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   pr   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z/GetPeerDialogsRequest._bytes.<locals>.<genexpr>e  r<  r   )rH   rK   rL   r   rM  rE   s    r>   rI   zGetPeerDialogsRequest._bytesb  sK    xxD#djj/ B388Kk`d`j`jKkCk
  	r@   c                     |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |      S )NrP  r  )rQ   rR   _peersrB   r   s        r>   rV   z!GetPeerDialogsRequest.from_readerh  sS    v() 	A%%'BMM"	   r@   Nr  r`   r@   r>   rK  rK  K  sA    NNd#89 
 ! !r@   rK  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
GetPeerSettingsRequestl   &_ iec                     || _         y)zK
        :returns messages.PeerSettings: Instance of PeerSettings.
        Nr   r   s     r>   r?   zGetPeerSettingsRequest.__init__w  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetPeerSettingsRequest.resolve}  r   r   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nr[  r   r   rE   s    r>   rD   zGetPeerSettingsRequest.to_dict  s?    )+5dii+JDII%%'
 	
PTPYPY
 	
r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   r   rE   s    r>   rI   zGetPeerSettingsRequest._bytes  +    xxII
  	r@   c                 4    |j                         } | |      S r   r   r   s      r>   rV   z"GetPeerSettingsRequest.from_reader  r   r@   Nr   r   r`   r@   r>   r[  r[  s  r   r@   r[  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetPinnedDialogsRequestl   Mr- rL  r  c                     || _         yrO  r  )r=   r  s     r>   r?   z GetPinnedDialogsRequest.__init__  r  r@   c                      d| j                   dS )Nrc  )rB   r  re  rE   s    r>   rD   zGetPinnedDialogsRequest.to_dict  r  r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   Mr}   )rH   rK   rL   r  rE   s    r>   rI   zGetPinnedDialogsRequest._bytes  s-    xxKKdnn-
  	r@   c                 4    |j                         } | |      S )Nre  r  )rQ   rR   r  s      r>   rV   z#GetPinnedDialogsRequest.from_reader  s    __&
Z((r@   Nrf  r`   r@   r>   rc  rc    r   r@   rc  c                   0    e Zd ZdZdZd Zd Zed        Zy)GetPinnedSavedDialogsRequestl   {, ~Kac                 
    ddiS )NrB   rj  r`   rE   s    r>   rD   z$GetPinnedSavedDialogsRequest.to_dict  s    /
 	
r@   c                 $    dj                  d      S )Nr@   )s   =r  rE   s    r>   rI   z#GetPinnedSavedDialogsRequest._bytes  r  r@   c                      |        S rl   r`   r  s     r>   rV   z(GetPinnedSavedDialogsRequest.from_reader  r  r@   Nr  r`   r@   r>   rj  rj    r  r@   rj  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)GetPollResultsRequesti;dsr   r7   r    re   c                      || _         || _        yr   r  r  s      r>   r?   zGetPollResultsRequest.__init__  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetPollResultsRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nrp  r  r  rE   s    r>   rD   zGetPollResultsRequest.to_dict  s<    (+5dii+JDII%%'PTPYPYkk
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   ;dsr}   r  rE   s    r>   rI   zGetPollResultsRequest._bytes  r  r@   c                 V    |j                         }|j                         } | ||      S r  r  r  s       r>   rV   z!GetPollResultsRequest.from_reader  r  r@   Nr   r`   r@   r>   rp  rp    r  r@   rp  c                   `    e Zd ZdZdZddddededee   d	ee   f
d
Z	d Z
d Zd Zed        Zy)GetPollVotesRequestl   8p l   3 Nr7   r    r  r+  optionr  c                 J    || _         || _        || _        || _        || _        y)zE
        :returns messages.VotesList: Instance of VotesList.
        Nr7   r  r+  rx  r  )r=   r7   r  r+  rx  r  s         r>   r?   zGetPollVotesRequest.__init__  s'     	
r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetPollVotesRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  dS )Nrw  )rB   r7   r  r+  rx  r  )rC   r7   r   rD   r  r+  rx  r  rE   s    r>   rD   zGetPollVotesRequest.to_dict  sQ    &+5dii+JDII%%'PTPYPY''ZZkkkk
 	
r@   c                 L   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j
                  j                         t        j                  d| j                        | j                  | j                  du rdn| j                  | j                        | j                  | j                  du rdn| j                  | j                        t        j                  d| j                        f      S )	Nr@   s   8nry   Fr   rz   r{   r}   )
rH   rK   rL   rx  r  r7   rI   r  rJ   r+  rE   s    r>   rI   zGetPollVotesRequest._bytes  s   xxKKDKK$74;;%;OqUV`d`k`k`sw{  xC  xC  GL  xL[\  RS  T  UIIKKdgg&;;&$++*>CTEYEYZ^ZeZeEf;;&$++*>CTEYEYZ^ZeZeEfKKdjj)
  	r@   c                     |j                         }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|j                         } | |||||      S )Nrz   r{   rz  )r   rN   rO   r   )rQ   rR   r   rS   r  _optionr  r7  s           r>   rV   zGetPollVotesRequest.from_reader
  s{    !$$&oo19))+GG19**,GG"#VGGTTr@   r8  )rX   rY   rZ   r[   r\   r^   r   r]   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   rw  rw    sf    NN_ # c 8TY? iqruiv S
	 U Ur@   rw  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)GetPreparedInlineMessageRequestl   =
 iMIr=  r&   r  c                      || _         || _        y)z]
        :returns messages.PreparedInlineMessage: Instance of PreparedInlineMessage.
        Nr=  r  )r=   r=  r  s      r>   r?   z(GetPreparedInlineMessageRequest.__init__   s     r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r?  rp   s      r>   rs   z'GetPreparedInlineMessageRequest.resolve'  r@  r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  )rB   r=  r  )rC   r=  r   rD   r  rE   s    r>   rD   z'GetPreparedInlineMessageRequest.to_dict*  s9    2)3DHHh)G488##%TXX''
 	
r@   c                     dj                  d| j                  j                         | j                  | j                        f      S )Nr@   s   ~)rH   r=  rI   rJ   r  rE   s    r>   rI   z&GetPreparedInlineMessageRequest._bytes1  s;    xxHHOO  )
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  r  )rQ   rR   rD  r  s       r>   rV   z+GetPreparedInlineMessageRequest.from_reader8  s+    ##%""$t$$r@   Nr  r`   r@   r>   r  r    sC    NNO  Q
 % %r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetQuickRepliesRequestl   r) l   fion r   c                     || _         y)zk
        :returns messages.QuickReplies: Instance of either QuickReplies, QuickRepliesNotModified.
        Nr   r   s     r>   r?   zGetQuickRepliesRequest.__init__C  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   zGetQuickRepliesRequest.to_dictI  r   r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   rG   r#  rE   s    r>   rI   zGetQuickRepliesRequest._bytesO  r$  r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   z"GetQuickRepliesRequest.from_readerU  r&  r@   Nrf  r`   r@   r>   r  r  ?  r'  r@   r  c            	       R    e Zd ZdZdZddededeee      fdZd Z	d	 Z
ed
        Zy)GetQuickReplyMessagesRequestl   I) r  Nr  r   r  c                 .    || _         || _        || _        yr  r  r   r  )r=   r  r   r  s       r>   r?   z%GetQuickReplyMessagesRequest.__init___  s     '	r@   c                 r    d| j                   | j                  | j                  g dS | j                  d d  dS )Nr  )rB   r  r   r  r  rE   s    r>   rD   z$GetQuickReplyMessagesRequest.to_dictg  sA    /++II"	
 	
 .2WWQZ	
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd      t        j                  d| j                        | j                  | j                  du rdnZdj                  dt        j                  dt        | j                              dj                  d	 | j                  D              f      t        j                  d
| j                        f      S )Nr@   s   Õry   Fr   rz   r}   r   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z6GetQuickReplyMessagesRequest._bytes.<locals>.<genexpr>t  E       Cj  ]^  DJ  DO  DO  PT  VW  DX  Cjr  rG   )rH   rK   rL   r  r  r   r   rE   s    r>   rI   z#GetQuickReplyMessagesRequest._byteso  s    xxKKDGGOtww%7GqQPKKd../77?dgg&6CCHHFYZ`ZeZefjloptpwpwlxZyz}  {C  {C  Cj  bf  bi  bi  Cj  {j  Fk  =lKKdii(
  	r@   c                 *   |j                         }|j                         }|dz  rR|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % nd }|j                         } | |||      S )Nrz   r  )r   r   r   rP   )rQ   rR   r   r  r  rB   r   r   s           r>   rV   z(GetQuickReplyMessagesRequest.from_readerx  s    !(19OOC6??,- __&

2
 C  "|%C@@r@   rl   )rX   rY   rZ   r[   r\   r^   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r  r  [  sO    NNC s c8K 
 A Ar@   r  c                   J    e Zd ZdZdZdddedefdZd Zd	 Zd
 Z	e
d        Zy)GetRecentLocationsRequesti@*pr  r7   r    r+  r   c                 .    || _         || _        || _        yr  r7   r+  r   )r=   r7   r+  r   s       r>   r?   z"GetRecentLocationsRequest.__init__  s     	
	r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z!GetRecentLocationsRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )Nr  )rB   r7   r+  r   )rC   r7   r   rD   r+  r   rE   s    r>   rD   z!GetRecentLocationsRequest.to_dict  sC    ,+5dii+JDII%%'PTPYPYZZII	
 	
r@   c           	          dj                  d| j                  j                         t        j                  d| j
                        t        j                  d| j                        f      S )Nr@   s   @*pr}   rG   )rH   r7   rI   rK   rL   r+  r   rE   s    r>   rI   z GetRecentLocationsRequest._bytes  sO    xxIIKKdjj)KKdii(	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr  )rN   r   rP   )rQ   rR   rS   r7  r   s        r>   rV   z%GetRecentLocationsRequest.from_reader  s9    $$&"  "V%88r@   Nr   r`   r@   r>   r  r    sJ    NN_ S  S
 9 9r@   r  c                   @    e Zd ZdZdZdedefdZd Zd Ze	d        Z
y	)
GetRecentReactionsRequestiF9r  r+  r   c                      || _         || _        yr  r+  r   r=   r+  r   s      r>   r?   z"GetRecentReactionsRequest.__init__       
	r@   c                 6    d| j                   | j                  dS )Nr  rB   r+  r   r  rE   s    r>   rD   z!GetRecentReactionsRequest.to_dict  s    ,ZZII
 	
r@   c                     dj                  dt        j                  d| j                        t        j                  d| j                        f      S )Nr@   s   F9r}   rG   rH   rK   rL   r+  r   rE   s    r>   rI   z GetRecentReactionsRequest._bytes  s?    xxKKdjj)KKdii(
  	r@   c                 V    |j                         }|j                         } | ||      S Nr  r5  rQ   rR   r7  r   s       r>   rV   z%GetRecentReactionsRequest.from_reader  )    "  "e,,r@   Nrf  r`   r@   r>   r  r    =    NNc  
 - -r@   r  c                   H    e Zd ZdZdZd
dedee   fdZd Z	d Z
ed	        Zy)GetRecentStickersRequestl   ;@R; l   n Nr   r  c                      || _         || _        y)zq
        :returns messages.RecentStickers: Instance of either RecentStickersNotModified, RecentStickers.
        Nr   r  )r=   r   r  s      r>   r?   z!GetRecentStickersRequest.__init__  r  r@   c                 6    d| j                   | j                  dS )Nr  )rB   r   r  r  rE   s    r>   rD   z GetRecentStickersRequest.to_dict  s    +II
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      t        j                  d| j                        f      S )Nr@   s   ;@ry   Fr   rz   rG   )rH   rK   rL   r  r   rE   s    r>   rI   zGetRecentStickersRequest._bytes  sR    xxKKDMM$9T]]e=SqYZ\KKdii(
  	r@   c                 r    |j                         }t        |dz        }|j                         } | ||      S )Nrz   r  r3  )rQ   rR   r   r  r   s        r>   rV   z$GetRecentStickersRequest.from_reader  s6    !O	  "	22r@   rl   r%  r`   r@   r>   r  r    sA    NN!S !HTN !
 3 3r@   r  c                   h    e Zd ZdZdZdddededee   ded	ed
ededefdZd Z	d Z
d Zed        Zy)GetRepliesRequesti"r  r7   r    re   r*  r  r  r+  r  r  r   c
                     || _         || _        || _        || _        || _        || _        || _        || _        |	| _        yr  	r7   re   r*  r  r  r+  r  r  r   )
r=   r7   re   r*  r  r  r+  r  r  r   s
             r>   r?   zGetRepliesRequest.__init__  sD     	"&$
	r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zGetRepliesRequest.resolve  r   r   c                 8   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  | j                  | j                  | j                  d
S )Nr  )
rB   r7   re   r*  r  r  r+  r  r  r   )rC   r7   r   rD   re   r*  r  r  r+  r  r  r   rE   s    r>   rD   zGetRepliesRequest.to_dict  so    $+5dii+JDII%%'PTPYPYkk++//ZZkkkkII
 	
r@   c                 >   dj                  d| j                  j                         t        j                  d| j
                        t        j                  d| j                        | j                  | j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        f
      S )Nr@   s   "r}   rG   )rH   r7   rI   rK   rL   re   r*  r  r  r  r+  r  r  r   rE   s    r>   rI   zGetRepliesRequest._bytes  s    xxIIKKdkk*KKdnn-##D$4$45KKdoo.KKdjj)KKdkk*KKdkk*KKdii(
  	r@   c                 D   |j                         }|j                         }|j                         }|j                         }|j                         }|j                         }|j                         }|j                         }	|j                         }
 | ||||||||	|
	      S )Nr  r  )rQ   rR   rS   r   r6  r  r  r7  r  r  r   s              r>   rV   zGetRepliesRequest.from_reader$  s    $$&//#__&
))+oo'"//#//#  "gQ]ju  ~D  MT  ]d  kp  q  	qr@   Nr  r`   r@   r>   r  r    s    NN_ c c X`aiXj x{   EH   RU   _b   jm S
 
q 
qr@   r  c                   n    e Zd ZdZdZddee   deddded	ed
ee   ded   fdZ	d Z
d Zd Zed        Zy)GetSavedDialogsRequestirk  Nr  r*  r  r    r+  r   r  r  c                 f    || _         || _        || _        || _        || _        || _        || _        yz~
        :returns messages.SavedDialogs: Instance of either SavedDialogs, SavedDialogsSlice, SavedDialogsNotModified.
        Nr  r*  r  r+  r   r  r  )r=   r  r*  r  r+  r   r  r  s           r>   r?   zGetSavedDialogsRequest.__init__6  s9     '"&
	,&r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   )rn   ro   r  r  rp   s      r>   rs   zGetSavedDialogsRequest.resolveB  sm      //f6M6MdN^N^6_0_`$33&:Q:QRVRbRb:c4cdD  1`4crM  c                 x   d| j                   | j                  t        | j                  t              r| j                  j                         n| j                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r  r*  r  r+  r   r  r  )
r  r*  rC   r  r   rD   r+  r   r  r  rE   s    r>   rD   zGetSavedDialogsRequest.to_dictG  s    )++9CDDTDTV^9_4++335eieueuZZII"119CDDTDTV^9_4++335	
 		
 fjeueu	
 		
r@   c                 P   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j                  | j                  du rdn| j                  j                         | j                  | j                        t        j                  d| j                        | j                  j                         t        j                  d| j                        t        j                  d	| j                        f      S )
Nr@   s   ry   Fr   rz   r{   r}   rG   )rH   rK   rL   r  r  rI   r  r  r*  r  r+  r   rE   s    r>   rI   zGetSavedDialogsRequest._bytesS  s   xxKKD$7$7$?4CVCVZ_C_qefpt  qA  qA  qI  MQ  M]  M]  af  Mfkl  lm  n  o##+t/?/?5/HCtO_O_OfOfOh##D$4$45KKdnn-##%KKdjj)KKdii(	
 	 		r@   c           	      ,   |j                         }t        |dz        }|dz  r|j                         }nd }|j                         }|j                         }|j                         }|j                         }|j	                         }	 | |||||	||      S )Nrz   r{   r  )r   r   rN   r  rP   )
rQ   rR   r   r  r  r  r6  r  r7  r   s
             r>   rV   z"GetSavedDialogsRequest.from_reader_  s    !uqy/19!//1LL))+__&
++-"  "|z|cipu  GV  dp  q  	qr@   r8  r  r`   r@   r>   r  r  2  s    NN
'HX$6 
'3 
'Ud 
'mp 
'x{ 
'  NV  W[  N\ 
'  px  yH  pI 
'e



 q qr@   r  c                   T    e Zd ZdZdZdded   ded   fdZd Zd	 Z	d
 Z
ed        Zy)GetSavedDialogsByIDRequestioork  Nidsr    r  c                      || _         || _        yr  r  r  )r=   r  r  s      r>   r?   z#GetSavedDialogsByIDRequest.__init__t  s     &r@   c                 >  K   g }| j                   D ]9  }|j                  |j                  |j                  |       d {                ; || _         | j                  r8|j                  |j                  | j                         d {         | _        y y 7 Z7 wrl   )r  r   rn   ro   r  r7  s        r>   rs   z"GetSavedDialogsByIDRequest.resolve{  s     (( 	QBKK,,63J3J23N-NOP	Q $33&:Q:QRVRbRb:c4cdD  .O 5ds"   <BBA
B	B
BBc                 $   d| j                   g n9| j                   D cg c]$  }t        |t              r|j                         n|& c}t        | j                  t              r| j                  j                         dS | j                  dS c c}w )Nr  )rB   r  r  )r  rC   r   rD   r  r   s     r>   rD   z"GetSavedDialogsByIDRequest.to_dict  s    -)2gkgogo/pbcz!X?V		\]0]/p9CDDTDTV^9_4++335
 	
 fjeueu
 	
/ps   )Bc                    dj                  dt        j                  d| j                  | j                  du rdnd      | j                  | j                  du rdn| j                  j	                         dt        j                  dt        | j                              dj                  d	 | j                  D              f      S )
Nr@   s   oory   Fr   r{   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z4GetSavedDialogsByIDRequest._bytes.<locals>.<genexpr>  s     IgYZ!((*Igr   )rH   rK   rL   r  rI   r   r  rE   s    r>   rI   z!GetSavedDialogsByIDRequest._bytes  s    xxKKD$4$4$<@P@PTY@Yq_`b##+t/?/?5/HCtO_O_OfOfOhD#dhh- @Ig^b^f^fIgAg	
  	r@   c                    |j                         }|dz  r|j                         }nd }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S )Nr{   r  r   rN   r   r   )rQ   rR   r   r  _idsrB   r   s          r>   rV   z&GetSavedDialogsByIDRequest.from_reader  sz    !19!//1LLv() 	A%%'BKKO	 t66r@   rl   )rX   rY   rZ   r[   r\   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  p  sM    NN'D1 '@Y 'e
 7 7r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	GetSavedGifsRequesti5\l   aM r   c                     || _         y)zb
        :returns messages.SavedGifs: Instance of either SavedGifsNotModified, SavedGifs.
        Nr   r   s     r>   r?   zGetSavedGifsRequest.__init__  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   zGetSavedGifsRequest.to_dict  s    &II
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   5\rG   r#  rE   s    r>   rI   zGetSavedGifsRequest._bytes  rZ  r@   c                 4    |j                         } | |      S r   rc  r   s      r>   rV   zGetSavedGifsRequest.from_reader  r&  r@   Nrf  r`   r@   r>   r  r    r'  r@   r  c                   p    e Zd ZdZdZddddedee   ded	ed
edededed   fdZd Z	d Z
d Zed        Zy)GetSavedHistoryRequestl   	03 r  Nr7   r    r*  r  r  r+  r  r  r   r  c
                     || _         || _        || _        || _        || _        || _        || _        || _        |	| _        yr  	r7   r*  r  r  r+  r  r  r   r  )
r=   r7   r*  r  r  r+  r  r  r   r  s
             r>   r?   zGetSavedHistoryRequest.__init__  sE     	"&$
	&r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   r  rp   s      r>   rs   zGetSavedHistoryRequest.resolve  r  rM  c                    dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         d
S | j                  d
S )Nr  )
rB   r7   r*  r  r  r+  r  r  r   r  )rC   r7   r   rD   r*  r  r  r+  r  r  r   r  rE   s    r>   rD   zGetSavedHistoryRequest.to_dict  s    )+5dii+JDII%%'PTPYPY++//ZZkkkkII9CDDTDTV^9_4++335
 	
 fjeueu
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd      | j                  | j                  du rdn| j                  j	                         | j
                  j	                         t        j                  d| j                        | j                  | j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        f      S )	Nr@   s   	ry   Fr   rz   r}   rG   )rH   rK   rL   r  rI   r7   r*  r  r  r  r+  r  r  r   rE   s    r>   rI   zGetSavedHistoryRequest._bytes  s   xxKKD$4$4$<@P@PTY@Yq_`b##+t/?/?5/HCtO_O_OfOfOhIIKKdnn-##D$4$45KKdoo.KKdjj)KKdkk*KKdkk*KKdii(
  	r@   c                 t   |j                         }|dz  r|j                         }nd }|j                         }|j                         }|j                         }|j                         }|j                         }|j                         }	|j                         }
|j                         } | ||||||	|
||	      S )Nrz   r  )r   rN   r  rP   )rQ   rR   r   r  rS   r6  r  r  r7  r  r  r   s               r>   rV   z"GetSavedHistoryRequest.from_reader  s    !19!//1LL$$&__&
))+oo'"//#//#  "Zems  }D  MT  [`  nz  {  	{r@   rl   r  r`   r@   r>   r  r    s    NN'_ ' '8T\K] 'kn 'wz '  EH '  RU '  ]` '  ow  xG  oH 'e

 { {r@   r  c                   N    e Zd ZdZdZddeded   fdZd Zd	 Z	d
 Z
ed        Zy)GetSavedReactionTagsRequesti[76l   [6G Nr   r7   r    c                      || _         || _        y)zz
        :returns messages.SavedReactionTags: Instance of either SavedReactionTagsNotModified, SavedReactionTags.
        Nr   r7   )r=   r   r7   s      r>   r?   z$GetSavedReactionTagsRequest.__init__  ry  r@   c                    K   | j                   r8|j                  |j                  | j                          d {         | _         y y 7 wrl   rm   rp   s      r>   rs   z#GetSavedReactionTagsRequest.resolve  rt   ru   c                     d| j                   t        | j                  t              r| j                  j	                         dS | j                  dS )Nr  )rB   r   r7   )r   rC   r7   r   rD   rE   s    r>   rD   z#GetSavedReactionTagsRequest.to_dict  sJ    .II+5dii+JDII%%'
 	
 QUPYPY
 	
r@   c           	      0   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  | j                  du rdn| j                  j	                         t        j                  d| j
                        f      S )Nr@   s   [76ry   Fr   rz   rG   )rH   rK   rL   r7   rI   r   rE   s    r>   rI   z"GetSavedReactionTagsRequest._bytes  sx    xxKKDII$5e9KqQRT99$		U(:CAQAQASKKdii(	
  	r@   c                     |j                         }|dz  r|j                         }nd }|j                         } | ||      S )Nrz   r  r   rN   rP   )rQ   rR   r   rS   r   s        r>   rV   z'GetSavedReactionTagsRequest.from_reader%  sC    !19((*EE  "E**r@   rl   rX   rY   rZ   r[   r\   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    sH    NNS (A W
 + +r@   r  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)GetScheduledHistoryRequestl   v,j r  r7   r    r   c                      || _         || _        yr  r7   r   )r=   r7   r   s      r>   r?   z#GetScheduledHistoryRequest.__init__5  ry  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z"GetScheduledHistoryRequest.resolve<  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  )rB   r7   r   )rC   r7   r   rD   r   rE   s    r>   rD   z"GetScheduledHistoryRequest.to_dict?  s<    -+5dii+JDII%%'PTPYPYII
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   vrG   )rH   r7   rI   rK   rL   r   rE   s    r>   rI   z!GetScheduledHistoryRequest._bytesF  s=    xxIIKKdii(
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  rm  )rQ   rR   rS   r   s       r>   rV   z&GetScheduledHistoryRequest.from_readerM  s+    $$&  "E**r@   Nr   r`   r@   r>   r  r  1  r  r@   r  c                   L    e Zd ZdZdZdddee   fdZd Zd Z	d	 Z
ed
        Zy)GetScheduledMessagesRequestl   dv{ r  r7   r    r  c                      || _         || _        yr  r  r  s      r>   r?   z$GetScheduledMessagesRequest.__init__X  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z#GetScheduledMessagesRequest.resolve_  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g dS | j                  d d  dS )Nr  r  r  rE   s    r>   rD   z#GetScheduledMessagesRequest.to_dictb  r  r@   c                     dj                  d| j                  j                         dt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   dr   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z5GetScheduledMessagesRequest._bytes.<locals>.<genexpr>m  r  r  r  rE   s    r>   rI   z"GetScheduledMessagesRequest._bytesi  s[    xxIID#dgg, ?HogkgngnHo@o
  	r@   c                     |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S r	  r   r
  s         r>   rV   z'GetScheduledMessagesRequest.from_readerp  r  r@   Nr  r`   r@   r>   r  r  T  r  r@   r  c            
       b    e Zd ZdZdZdddded   ded   d	ee   fd
Zd Z	d Z
d Zed        Zy)GetSearchCountersRequesti in<kNr7   r    filtersr)   saved_peer_idr  c                 <    || _         || _        || _        || _        y)zY
        :returns Vector<messages.SearchCounter>: This type has no constructors.
        Nr7   r  r  r  )r=   r7   r  r  r  s        r>   r?   z!GetSearchCountersRequest.__init__  s!     	*$r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   rn   ro   r7   r  rp   s      r>   rs   z GetSearchCountersRequest.resolve  j     ((v/F/Ftyy/Q)QR	!&!5!5F<S<STXTfTf<g6g!hD  *R6grM  c           	         dt        | j                  t              r| j                  j                         n| j                  | j                  g n9| j                  D cg c]$  }t        |t              r|j                         n|& c}t        | j
                  t              r| j
                  j                         n| j
                  | j                  dS c c}w )Nr  )rB   r7   r  r  r  )rC   r7   r   rD   r  r  r  r   s     r>   rD   z GetSearchCountersRequest.to_dict  s    ++5dii+JDII%%'PTPYPY!\\1roso{o{7|jkzRSU]G^		de8e7|=GHZHZ\d=eT//779kok}k}//
 	
 8}s   )Cc                 l   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j
                  j                         | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdnt        j                  d| j                        d	t        j                  dt        | j                              dj                  d
 | j                  D              f      S )Nr@   s    ry   Fr   r|   rz   r}   r   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z2GetSearchCountersRequest._bytes.<locals>.<genexpr>       Mo]^ahhjMor   )	rH   rK   rL   r  r  r7   rI   r   r  rE   s    r>   rI   zGetSearchCountersRequest._bytes  s%   xxKKD$6$6$>$BTBTX]B]qcdnrn}n}  oF  JN  JY  JY  ]b  Jbij  hi  j  kII%%-1C1Cu1LCSWSeSeSlSlSn??*doo.FCV[[Y]_c_n_nMoD#dll2C DSXXMobfbnbnMoEo
  	r@   c                 \   |j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||||      S )Nr|   rz   r  r  )	rQ   rR   r   rS   _saved_peer_idr  _filtersrB   r   s	            r>   rV   z$GetSearchCountersRequest.from_reader  s    !$$&19#113N!N19 //+KKv() 	 A%%'BOOB	  x~Zeffr@   r8  )rX   rY   rZ   r[   r\   r   r   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  |  ss    NN%_ %t<P7Q %bjkzb{ %  OW  X[  O\ %i

 g gr@   r  c                   `    e Zd ZdZdZdddddded	ee   d
ed   f
dZd Z	d Z
d Zed        Zy)GetSearchResultsCalendarRequestijl   d% Nr7   r    filterr)   r*  r  r  c                 J    || _         || _        || _        || _        || _        y)z]
        :returns messages.SearchResultsCalendar: Instance of SearchResultsCalendar.
        Nr7   r  r*  r  r  )r=   r7   r  r*  r  r  s         r>   r?   z(GetSearchResultsCalendarRequest.__init__  s)     	"&*r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   r  rp   s      r>   rs   z'GetSearchResultsCalendarRequest.resolve  r  rM  c           	         dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r7   r  r*  r  r  )rC   r7   r   rD   r  r*  r  r  rE   s    r>   rD   z'GetSearchResultsCalendarRequest.to_dict  s    2+5dii+JDII%%'PTPYPY/9$++x/Pdkk))+VZVaVa++=GHZHZ\d=eT//779
 	
 lpk}k}
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  | j                  du rdn| j                  j                         | j                  j                         t        j                  d| j                        | j                  | j                        f      S )Nr@   s   jry   Fr   r|   r}   )
rH   rK   rL   r  r7   rI   r  r*  r  r  rE   s    r>   rI   z&GetSearchResultsCalendarRequest._bytes  s    xxKKD$6$6$>$BTBTX]B]qcdfII%%-1C1Cu1LCSWSeSeSlSlSnKK KKdnn-##D$4$45
  	r@   c                     |j                         }|j                         }|dz  r|j                         }nd }|j                         }|j                         }|j                         } | |||||      S )Nr|   r  r  )rQ   rR   r   rS   r  _filterr6  r  s           r>   rV   z+GetSearchResultsCalendarRequest.from_reader  ss    !$$&19#113N!N&&(__&
))+gQ]m{||r@   rl   r  r`   r@   r>   r  r    sv    NN+_ +6J +WZ +iqrzi{ +  MU  Ve  Mf +i

	 } }r@   r  c                   Z    e Zd ZdZdZdddddded	ed
ed   f
dZd Zd Z	d Z
ed        Zy) GetSearchResultsPositionsRequestl   /8 l   p2 Nr7   r    r  r)   r*  r+  r  c                 J    || _         || _        || _        || _        || _        y)z_
        :returns messages.SearchResultsPositions: Instance of SearchResultsPositions.
        Nr7   r  r*  r+  r  )r=   r7   r  r*  r+  r  s         r>   r?   z)GetSearchResultsPositionsRequest.__init__  s(     	"
*r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   r  rp   s      r>   rs   z(GetSearchResultsPositionsRequest.resolve  r  rM  c           	         dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r7   r  r*  r+  r  )rC   r7   r   rD   r  r*  r+  r  rE   s    r>   rD   z(GetSearchResultsPositionsRequest.to_dict  s    3+5dii+JDII%%'PTPYPY/9$++x/Pdkk))+VZVaVaZZ=GHZHZ\d=eT//779
 	
 lpk}k}
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  | j                  du rdn| j                  j                         | j                  j                         t        j                  d| j                        t        j                  d| j                        f      S )Nr@   s   /ry   Fr   r|   r}   )	rH   rK   rL   r  r7   rI   r  r*  r+  rE   s    r>   rI   z'GetSearchResultsPositionsRequest._bytes  s    xxKKD$6$6$>$BTBTX]B]qcdfII%%-1C1Cu1LCSWSeSeSlSlSnKK KKdnn-KKdjj)
  	r@   c                     |j                         }|j                         }|dz  r|j                         }nd }|j                         }|j                         }|j                         } | |||||      S )Nr|   r  r  )rQ   rR   r   rS   r  r  r6  r7  s           r>   rV   z,GetSearchResultsPositionsRequest.from_reader  sp    !$$&19#113N!N&&(__&
"g6aoppr@   rl   r  r`   r@   r>   r  r    sl    NN+_ +6J +WZ +cf +w  AP  xQ +i

	 q qr@   r  c                   0    e Zd ZdZdZd Zd Zed        Zy)GetSplitRangesRequesti~i%[c                 
    ddiS )NrB   r  r`   rE   s    r>   rD   zGetSplitRangesRequest.to_dict)  r   r@   c                 $    dj                  d      S )Nr@   )s   ~r  rE   s    r>   rI   zGetSplitRangesRequest._bytes.  r  r@   c                      |        S rl   r`   r  s     r>   rV   z!GetSplitRangesRequest.from_reader3  r  r@   Nr  r`   r@   r>   r  r  %  r  r@   r  c                   N    e Zd ZdZdZddddee   fdZd Zd	 Z	d
 Z
ed        Zy)GetSponsoredMessagesRequestiPl=iiANr7   r    re   c                      || _         || _        y)zt
        :returns messages.SponsoredMessages: Instance of either SponsoredMessages, SponsoredMessagesEmpty.
        Nr  r  s      r>   r?   z$GetSponsoredMessagesRequest.__init__<  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z#GetSponsoredMessagesRequest.resolveC  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr"  r  r  rE   s    r>   rD   z#GetSponsoredMessagesRequest.to_dictF  r  r@   c           	      :   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  | j                  du rdf      S t        j                  d| j                        f      S )Nr@   s   Pl=ry   Fr   rz   r}   )rH   rK   rL   re   r7   rI   rE   s    r>   rI   z"GetSponsoredMessagesRequest._bytesM  s    xxKKDKK$74;;%;OqUVXII;;&$++*>C	
  	 FL[[QUW[WbWbEc	
  	r@   c                     |j                         }|j                         }|dz  r|j                         }nd } | ||      S )Nrz   r  r  )rQ   rR   r   rS   r   s        r>   rV   z'GetSponsoredMessagesRequest.from_readerU  sA    !$$&19oo'GGg..r@   rl   rX   rY   rZ   r[   r\   r   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r"  r"  8  sG    NN_ hsm S
 / /r@   r"  c                   @    e Zd ZdZdZdddefdZd Zd Ze	d	        Z
y
)GetStickerSetRequestl   tlA l   ZJ6 
stickersetr$   r   c                      || _         || _        y)ze
        :returns messages.StickerSet: Instance of either StickerSet, StickerSetNotModified.
        Nr+  r   )r=   r+  r   s      r>   r?   zGetStickerSetRequest.__init__e  s     %	r@   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr*  )rB   r+  r   )rC   r+  r   rD   r   rE   s    r>   rD   zGetStickerSetRequest.to_dictl  s=    '7A$//S[7\$//113bfbqbqII
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   tr}   )rH   r+  rI   rK   rL   r   rE   s    r>   rI   zGetStickerSetRequest._bytess  s=    xxOO""$KKdii(
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr-  r  )rQ   rR   _stickersetr   s       r>   rV   z GetStickerSetRequest.from_readerz  s)    **,!k66r@   Nrf  r`   r@   r>   r*  r*  a  s>    NN#8  
 7 7r@   r*  c                   @    e Zd ZdZdZdedefdZd Zd Z	e
d        Zy	)
GetStickersRequestl   SK+ l   9w. emoticonr   c                      || _         || _        y)z_
        :returns messages.Stickers: Instance of either StickersNotModified, Stickers.
        Nr4  r   r=   r4  r   s      r>   r?   zGetStickersRequest.__init__       !	r@   c                 6    d| j                   | j                  dS )Nr3  rB   r4  r   r6  rE   s    r>   rD   zGetStickersRequest.to_dict  s    %II
 	
r@   c                     dj                  d| j                  | j                        t        j                  d| j
                        f      S )Nr@   s   ӥrG   rH   rJ   r4  rK   rL   r   rE   s    r>   rI   zGetStickersRequest._bytes  s?    xx  /KKdii(
  	r@   c                 V    |j                         }|j                         } | ||      S Nr6  r   rP   rQ   rR   	_emoticonr   s       r>   rV   zGetStickersRequest.from_reader  +    ((*	  "IE22r@   Nr+  r`   r@   r>   r3  r3    =    NN C 
 3 3r@   r3  c                   0    e Zd ZdZdZd Zd Zed        Zy) GetSuggestedDialogFiltersRequestl   ,T9E i9l){c                 
    ddiS )NrB   rE  r`   rE   s    r>   rD   z(GetSuggestedDialogFiltersRequest.to_dict  s    3
 	
r@   c                 $    dj                  d      S )Nr@   )s   ,Ԝr  rE   s    r>   rI   z'GetSuggestedDialogFiltersRequest._bytes  r  r@   c                      |        S rl   r`   r  s     r>   rV   z,GetSuggestedDialogFiltersRequest.from_reader  r  r@   Nr  r`   r@   r>   rE  rE    r  r@   rE  c                   @    e Zd ZdZdZdedefdZd Zd Ze	d        Z
y	)
GetTopReactionsRequestl   %w r  r+  r   c                      || _         || _        yr  r  r  s      r>   r?   zGetTopReactionsRequest.__init__  r  r@   c                 6    d| j                   | j                  dS )NrJ  r  r  rE   s    r>   rD   zGetTopReactionsRequest.to_dict  s    )ZZII
 	
r@   c                     dj                  dt        j                  d| j                        t        j                  d| j                        f      S )Nr@   s   %r}   rG   r  rE   s    r>   rI   zGetTopReactionsRequest._bytes  s?    xxKKdjj)KKdii(
  	r@   c                 V    |j                         }|j                         } | ||      S r  r5  r  s       r>   rV   z"GetTopReactionsRequest.from_reader  r  r@   Nrf  r`   r@   r>   rJ  rJ    r  r@   rJ  c                   b    e Zd ZdZdZddddededed	ed
edee   fdZd Zd Z	d Z
ed        Zy)GetUnreadMentionsRequestl   gb r  Nr7   r    r*  r  r+  r  r  r  c                 f    || _         || _        || _        || _        || _        || _        || _        yr  r7   r*  r  r+  r  r  r  )r=   r7   r*  r  r+  r  r  r  s           r>   r?   z!GetUnreadMentionsRequest.__init__  s5     	"$
$r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z GetUnreadMentionsRequest.resolve  r   r   c           	         dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  | j                  dS )NrP  )rB   r7   r*  r  r+  r  r  r  )
rC   r7   r   rD   r*  r  r+  r  r  r  rE   s    r>   rD   z GetUnreadMentionsRequest.to_dict  s_    ++5dii+JDII%%'PTPYPY//ZZkkkk//	
 		
r@   c                 f   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  | j                  du rdnt        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        f	      S )Nr@   s   ry   Fr   rz   r}   )rH   rK   rL   r  r7   rI   r*  r  r+  r  r  rE   s    r>   rI   zGetUnreadMentionsRequest._bytes  s    xxKKDOO$;tRW?Wq]^`II??*doo.FCV[[Y]_c_n_nMoKKdnn-KKdoo.KKdjj)KKdkk*KKdkk*

 
 
	r@   c           	      0   |j                         }|j                         }|dz  r|j                         }nd }|j                         }|j                         }|j                         }|j                         }|j                         }	 | ||||||	|      S )Nrz   rR  r  )
rQ   rR   r   rS   r  r6  r  r7  r  r  s
             r>   rV   z$GetUnreadMentionsRequest.from_reader   s    !$$&19 //+KK__&
oo'"//#//#SYbiry  GR  S  	Sr@   rl   r  r`   r@   r>   rP  rP    s~    NN
%_ 
% 
%# 
%VY 
%cf 
%ps 
%  BJ  KN  BO 
%S

 S Sr@   rP  c                   l    e Zd ZdZdZddddededed	ed
edee   ded   fdZd Zd Z	d Z
ed        Zy)GetUnreadReactionsRequestl   z r  Nr7   r    r*  r  r+  r  r  r  r  c	                 t    || _         || _        || _        || _        || _        || _        || _        || _        yr  r7   r*  r  r+  r  r  r  r  )	r=   r7   r*  r  r+  r  r  r  r  s	            r>   r?   z"GetUnreadReactionsRequest.__init__  s=     	"$
$*r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   r  rp   s      r>   rs   z!GetUnreadReactionsRequest.resolve"  r  rM  c                    dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         d	S | j                  d	S )NrX  )	rB   r7   r*  r  r+  r  r  r  r  )rC   r7   r   rD   r*  r  r+  r  r  r  r  rE   s    r>   rD   z!GetUnreadReactionsRequest.to_dict'  s    ,+5dii+JDII%%'PTPYPY//ZZkkkk//=GHZHZ\d=eT//779

 
	
 lpk}k}

 
	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j
                  j                         | j                  | j                  du rdnt        j                  d| j                        | j                  | j                  du rdn| j                  j                         t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        f
      S )	Nr@   s   ry   Fr   rz   r{   r}   )rH   rK   rL   r  r  r7   rI   r*  r  r+  r  r  rE   s    r>   rI   z GetUnreadReactionsRequest._bytes4  sJ   xxKKDOO$;tRW?Wq]^hlhzhz  iC  GK  GY  GY  ]b  Gbcd  hi  j  kII??*doo.FCV[[Y]_c_n_nMo%%-1C1Cu1LCSWSeSeSlSlSnKKdnn-KKdoo.KKdjj)KKdkk*KKdkk*
  	r@   c           
      b   |j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|j                         }|j                         }|j                         }|j                         }	|j                         }
 | |||||	|
||      S )Nrz   r{   rZ  r  )rQ   rR   r   rS   r  r  r6  r  r7  r  r  s              r>   rV   z%GetUnreadReactionsRequest.from_readerB  s    !$$&19 //+KK19#113N!N__&
oo'"//#//#SYbiry  GR  bp  q  	qr@   r8  r  r`   r@   r>   rX  rX    s    NN+_ + +# +VY +cf +ps +  BJ  KN  BO +  em  n}  e~ +i

 q qr@   rX  c                   @    e Zd ZdZdZdedefdZd Zd Z	e
d        Zy	)
GetWebPageRequestl   - iT,rg   r   c                      || _         || _        y)zA
        :returns messages.WebPage: Instance of WebPage.
        Nrg   r   )r=   rg   r   s      r>   r?   zGetWebPageRequest.__init__[  ri  r@   c                 6    d| j                   | j                  dS )Nr`  )rB   rg   r   rb  rE   s    r>   rD   zGetWebPageRequest.to_dictb  s    $88II
 	
r@   c                     dj                  d| j                  | j                        t        j                  d| j
                        f      S )Nr@   s   r}   )rH   rJ   rg   rK   rL   r   rE   s    r>   rI   zGetWebPageRequest._bytesi  s?    xx  *KKdii(
  	r@   c                 V    |j                         }|j                         } | ||      S )Nrb  r)  )rQ   rR   r   r   s       r>   rV   zGetWebPageRequest.from_readerp  s)    ##%!t%((r@   Nr+  r`   r@   r>   r`  r`  W  s=    NNC s 
 ) )r@   r`  c                   N    e Zd ZdZdZddedeed      fdZd Z	d	 Z
ed
        Zy)GetWebPagePreviewRequestiooWl   (E Nr  r  r(   c                      || _         || _        y)zO
        :returns messages.WebPagePreview: Instance of WebPagePreview.
        Nr  r  )r=   r  r  s      r>   r?   z!GetWebPagePreviewRequest.__init__{  s      r@   c           	          d| j                   | j                  g dS | j                  D cg c]$  }t        |t              r|j	                         n|& c}dS c c}w )Nrg  )rB   r  r  )r  r  rC   r   rD   r   s     r>   rD   z GetWebPagePreviewRequest.to_dict  sb    +||"mm3
 	
 rvq~q~9lmTUW_I`!))+fg:g9
 	
 :@s   )Ac                    dj                  dt        j                  d| j                  | j                  du rdnd      | j	                  | j
                        | j                  | j                  du rdf      S dj                  dt        j                  dt        | j                              dj                  d	 | j                  D              f      f      S )
Nr@   s   ooWry   Fr   rI  r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z2GetWebPagePreviewRequest._bytes.<locals>.<genexpr>  r  r   )rH   rK   rL   r  rJ   r  r   rE   s    r>   rI   zGetWebPagePreviewRequest._bytes  s   xxKKDMM$9T]]e=SqYZ\  .==(DMMU,BC	
  	 ILReflfqfqrvx{  }A  }J  }J  yK  gL  MP  MU  MU  Ux  jn  jw  jw  Ux  Mx  Ry  Iz	
  	r@   c                    |j                         }|j                         }|dz  rR|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       % nd } | ||      S )NrI  ri  )r   r   r   rN   r   )rQ   rR   r   r  r  rB   r   s          r>   rV   z$GetWebPagePreviewRequest.from_reader  s}    !'')19OOI6??,- %))+  $%
 I8i88r@   rl   )rX   rY   rZ   r[   r\   r   r   r   r?   rD   rI   r_   rV   r`   r@   r>   rg  rg  w  sH    NN! !x=P8Q/R !
 9 9r@   rg  c                   X    e Zd ZdZdZddddee   dee   fdZd	 Z	d
 Z
d Zed        Zy)HideAllChatJoinRequestsRequestl   tA r   Nr7   r    approvedru  c                 .    || _         || _        || _        yr   r7   rp  ru  )r=   r7   rp  ru  s       r>   r?   z'HideAllChatJoinRequestsRequest.__init__  s     	 	r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z&HideAllChatJoinRequestsRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )Nro  )rB   r7   rp  ru  )rC   r7   r   rD   rp  ru  rE   s    r>   rD   z&HideAllChatJoinRequestsRequest.to_dict  sC    1+5dii+JDII%%'PTPYPYII	
 	
r@   c           	      n   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j
                  j                         | j                  | j                  du rdf      S | j                  | j                        f      S )Nr@   s   ry   Fr   rz   r{   )rH   rK   rL   rp  ru  r7   rI   rJ   rE   s    r>   rI   z%HideAllChatJoinRequestsRequest._bytes  s    xxKKDMM$9T]]e=SqYZdhdmdmduy}  zC  zC  GL  zL_`  RS  T  UII99$		U(:C	
  	 BFAUAUVZV_V_A`	
  	r@   c                     |j                         }t        |dz        }|j                         }|dz  r|j                         }nd } | |||      S )Nrz   r{   rr  r   )rQ   rR   r   	_approvedrS   r  s         r>   rV   z*HideAllChatJoinRequestsRequest.from_reader  sR    !O	$$&19((*EE	>>r@   r8  )rX   rY   rZ   r[   r\   r   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   ro  ro    sU    NN_  S[\_S` S
 	? 	?r@   ro  c                   R    e Zd ZdZdZddddddee   fd	Zd
 Zd Z	d Z
ed        Zy)HideChatJoinRequestRequestir   Nr7   r    r   r&   rp  c                 .    || _         || _        || _        yr   r7   r   rp  )r=   r7   r   rp  s       r>   r?   z#HideChatJoinRequestRequest.__init__  s     	 r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   r  rp   s      r>   rs   z"HideChatJoinRequestRequest.resolve  r  r  c                    dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  dS )Nry  )rB   r7   r   rp  )rC   r7   r   rD   r   rp  rE   s    r>   rD   z"HideChatJoinRequestRequest.to_dict  sb    -+5dii+JDII%%'PTPYPY1;DLL(1St||++-Y]YeYe	
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  j                         f      S )Nr@   s   ry   Fr   rz   )rH   rK   rL   rp  r7   rI   r   rE   s    r>   rI   z!HideChatJoinRequestRequest._bytes  s`    xxKKDMM$9T]]e=SqYZ\IILL!	
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         } | |||      S )Nrz   r{  r   r   rN   )rQ   rR   r   rw  rS   r   s         r>   rV   z&HideChatJoinRequestRequest.from_reader  sF    !O	$$&'')x)DDr@   rl   rX   rY   rZ   r[   r\   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   ry  ry    sS    NN!_ ! !RZ[_R` !Y
 E Er@   ry  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
HidePeerSettingsBarRequesti8Or   c                     || _         yr   r   r   s     r>   r?   z#HidePeerSettingsBarRequest.__init__  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z"HidePeerSettingsBarRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nr  r   r   rE   s    r>   rD   z"HidePeerSettingsBarRequest.to_dict  ?    -+5dii+JDII%%'
 	
PTPYPY
 	
r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   8Or   rE   s    r>   rI   z!HidePeerSettingsBarRequest._bytes  r  r@   c                 4    |j                         } | |      S r   r   r   s      r>   rV   z&HidePeerSettingsBarRequest.from_reader  r   r@   Nr   r   r`   r@   r>   r  r    r   r@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	ImportChatInviteRequestiPlr   r   c                     || _         yr   r   r   s     r>   r?   z ImportChatInviteRequest.__init__  r   r@   c                      d| j                   dS )Nr  r   r   rE   s    r>   rD   zImportChatInviteRequest.to_dict!  rQ  r@   c                 Z    dj                  d| j                  | j                        f      S )Nr@   s   Plr   rE   s    r>   rI   zImportChatInviteRequest._bytes'  s-    xx  +
  	r@   c                 4    |j                         } | |      S r   r   r   s      r>   rV   z#ImportChatInviteRequest.from_reader-  r   r@   Nr   r`   r@   r>   r  r    r'  r@   r  c                   J    e Zd ZdZdZdddddefdZd	 Zd
 Zd Z	e
d        Zy)InitHistoryImportRequesti;	4l   
5c r7   r    filer   media_countc                 .    || _         || _        || _        y)zM
        :returns messages.HistoryImport: Instance of HistoryImport.
        Nr7   r  r  )r=   r7   r  r  s       r>   r?   z!InitHistoryImportRequest.__init__7  s     		&r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z InitHistoryImportRequest.resolve?  r   r   c                    dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  dS )Nr  )rB   r7   r  r  )rC   r7   r   rD   r  r  rE   s    r>   rD   z InitHistoryImportRequest.to_dictB  sd    ++5dii+JDII%%'PTPYPY+5dii+JDII%%'PTPYPY++	
 	
r@   c           	          dj                  d| j                  j                         | j                  j                         t	        j
                  d| j                        f      S )Nr@   s   ;	4r}   )rH   r7   rI   r  rK   rL   r  rE   s    r>   rI   zInitHistoryImportRequest._bytesJ  sO    xxIIIIKKd../	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr  r  )rQ   rR   rS   _file_media_counts        r>   rV   z$InitHistoryImportRequest.from_readerR  s9    $$&$$&(E|DDr@   Nr   r`   r@   r>   r  r  3  sM    NN'_ 'O 'RU 'S
 E Er@   r  c                   @    e Zd ZdZdZdddefdZd Zd Ze	d	        Z
y
)InstallStickerSetRequestl   `d i?gr+  r$   archivedc                      || _         || _        y)z
        :returns messages.StickerSetInstallResult: Instance of either StickerSetInstallResultSuccess, StickerSetInstallResultArchive.
        Nr+  r  )r=   r+  r  s      r>   r?   z!InstallStickerSetRequest.__init__^  s     % r@   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  )rB   r+  r  )rC   r+  r   rD   r  rE   s    r>   rD   z InstallStickerSetRequest.to_dicte  s=    +7A$//S[7\$//113bfbqbq
 	
r@   c                     dj                  d| j                  j                         | j                  rdf      S df      S )Nr@   s   `r:  r;  )rH   r+  rI   r  rE   s    r>   rI   zInstallStickerSetRequest._bytesl  sH    xxOO""$!]]M
  	 1>
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  r  )rQ   rR   r1  	_archiveds       r>   rV   z$InstallStickerSetRequest.from_readers  s+    **,&&(	kI>>r@   NrX   rY   rZ   r[   r\   r   r?   rD   rI   r_   rV   r`   r@   r>   r  r  Z  s>    NN!#8 !D !
 ? ?r@   r  c                   X    e Zd ZdZdZddddee   ded   fd	Zd
 Zd Z	d Z
ed        Zy)MarkDialogUnreadRequestl    r   Nr7   r   unreadr  r    c                 .    || _         || _        || _        yr   r7   r  r  )r=   r7   r  r  s       r>   r?   z MarkDialogUnreadRequest.__init__~       	&r@   c                    K   |j                  | j                         d {   | _        | j                  r8|j                  |j	                  | j                         d {         | _        y y 7 N7 wrl   )rR  r7   r  rn   ro   rp   s      r>   rs   zMarkDialogUnreadRequest.resolve  s^      22499==	$33&:Q:QRVRbRb:c4cdD  >4cs!   A4A0>A4 A2!A42A4c                     dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         dS | j
                  dS )Nr  )rB   r7   r  r  )rC   r7   r   rD   r  r  rE   s    r>   rD   zMarkDialogUnreadRequest.to_dict  su    *+5dii+JDII%%'PTPYPYkk9CDDTDTV^9_4++335	
 	
 fjeueu	
 	
r@   c           	      b   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j                  | j                  du rdn| j                  j                         | j                  j                         f      S )Nr@   s   Pry   Fr   rz   r{   )rH   rK   rL   r  r  rI   r7   rE   s    r>   rI   zMarkDialogUnreadRequest._bytes  s    xxKKDKK$74;;%;OqUV`d`p`p`x  }A  }M  }M  QV  }V[\  \]  ^  _##+t/?/?5/HCtO_O_OfOfOhII	
  	r@   c                     |j                         }t        |dz        }|dz  r|j                         }nd }|j                         } | |||      S )Nrz   r{   r  r  )rQ   rR   r   _unreadr  rS   s         r>   rV   z#MarkDialogUnreadRequest.from_reader  sR    !uqy/19!//1LL$$&g<HHr@   r8  r  r`   r@   r>   r  r  z  sX    NN'2 'HTN '^fgv^w 'e

 	I 	Ir@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	MigrateChatRequestl   SE r   r   c                     || _         yr   rY  rZ  s     r>   r?   zMigrateChatRequest.__init__  r[  r@   c                      d| j                   dS )Nr  r]  rY  rE   s    r>   rD   zMigrateChatRequest.to_dict  r  r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   SrG   r_  rE   s    r>   rI   zMigrateChatRequest._bytes  r  r@   c                 4    |j                         } | |      S rb  rc  rd  s      r>   rV   zMigrateChatRequest.from_reader  re  r@   Nrf  r`   r@   r>   r  r    rg  r@   r  c                   j    e Zd ZdZdZdddddded	ee   d
ed   ded   fdZd Z	d Z
d Zed        Zy)ProlongWebViewRequestl   a r   Nr7   r    r=  r&   query_idr  r  r"   rF  c                 X    || _         || _        || _        || _        || _        || _        yr   r7   r=  r  r  r  rF  )r=   r7   r=  r  r  r  rF  s          r>   r?   zProlongWebViewRequest.__init__  s.     	  r@   c                 |  K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        | j
                  r8|j                  |j                  | j
                         d {         | _        y y 7 7 T7 wrl   rn   ro   r7   r   r=  rF  rp   s      r>   rs   zProlongWebViewRequest.resolve       ((v/F/Ftyy/Q)QR	''f.E.Edhh.O(OP<< //f6M6Mdll6[0[\DL  *R(O0[r  c           
      2   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  t        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r7   r=  r  r  r  rF  )	rC   r7   r   rD   r=  r  r  r  rF  rE   s    r>   rD   zProlongWebViewRequest.to_dict  s    (+5dii+JDII%%'PTPYPY)3DHHh)G488##%TXXkk3=dmmX3V--/\`\i\i1;DLL(1St||++-
 	
 Z^YeYe
 	
r@   c           
         dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz        | j                  j                         | j                  j                         t        j                  d	| j                        | j                  | j                  du rdn| j                  j                         | j
                  | j
                  du rdf      S | j
                  j                         f      S )
Nr@   s   ذry   Fr   r  rz   r  rG   )
rH   rK   rL   r  r  rF  r7   rI   r=  r  rE   s    r>   rI   zProlongWebViewRequest._bytes  sa   xxKKDKK$74;;%;OqUWaeananavz~  {H  {H  LQ  {Q\]  WX  Y  bf  bn  bn  bv  z~  zF  zF  JO  zO  ]^  UY  Z  [IIHHOOKKdmm,==(DMMU,BCI]I]I_<<'4<<5+@C
  	 HL||GZGZG\
  	r@   c                    |j                         }t        |dz        }|j                         }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd } | ||||||      S )Nr  rz   r  r  )r   r   rN   rP   )	rQ   rR   r   r   rS   rD  	_query_idr	  rU  s	            r>   rV   z!ProlongWebViewRequest.from_reader  s    !urz"$$&##%$$&	19,,.II4<++-HH4)GV_iqrrr@   r.  rr  r`   r@   r>   r  r    s    NN	_ 	? 	c 	[cdh[i 	  {C  DV  {W 	  go  p  g@ 	]	
	 s sr@   r  c                   N    e Zd ZdZdZdddededefdZd	 Zd
 Z	d Z
ed        Zy)RateTranscribedAudioRequesti/r   r7   r    re   transcription_idgoodc                 <    || _         || _        || _        || _        yr   r7   re   r  r  )r=   r7   re   r  r  s        r>   r?   z$RateTranscribedAudioRequest.__init__  s!     	 0	r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z#RateTranscribedAudioRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  dS )Nr  )rB   r7   re   r  r  )rC   r7   r   rD   re   r  r  rE   s    r>   rD   z#RateTranscribedAudioRequest.to_dict  sL    .+5dii+JDII%%'PTPYPYkk $ 5 5II
 	
r@   c           	          dj                  d| j                  j                         t        j                  d| j
                        t        j                  d| j                        | j                  rdf      S df      S )Nr@   s   /r}   rG   r:  r;  )rH   r7   rI   rK   rL   re   r  r  rE   s    r>   rI   z"RateTranscribedAudioRequest._bytes  sn    xxIIKKdkk*KKd334!YYM
  	
 -:
  	r@   c                     |j                         }|j                         }|j                         }|j                         } | ||||      S )Nr  )rN   r   rP   r=  )rQ   rR   rS   r   _transcription_id_goods         r>   rV   z'RateTranscribedAudioRequest.from_reader$  sL    $$&//#",,.""$g@QX]^^r@   Nr?  r`   r@   r>   r  r    sT    NN_ c S X\ S
 _ _r@   r  c                   J    e Zd ZdZdZdddedefdZd Zd	 Zd
 Z	e
d        Zy)ReadDiscussionRequestl   )cn r   r7   r    re   read_max_idc                 .    || _         || _        || _        yr   r7   re   r  )r=   r7   re   r  s       r>   r?   zReadDiscussionRequest.__init__1  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zReadDiscussionRequest.resolve9  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )Nr  )rB   r7   re   r  )rC   r7   r   rD   re   r  rE   s    r>   rD   zReadDiscussionRequest.to_dict<  sE    (+5dii+JDII%%'PTPYPYkk++	
 	
r@   c           	          dj                  d| j                  j                         t        j                  d| j
                        t        j                  d| j                        f      S )Nr@   s   1r}   )rH   r7   rI   rK   rL   re   r  rE   s    r>   rI   zReadDiscussionRequest._bytesD  sQ    xxIIKKdkk*KKd../	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr  r  )rQ   rR   rS   r   _read_max_ids        r>   rV   z!ReadDiscussionRequest.from_readerL  s7    $$&//#(g<HHr@   Nr   r`   r@   r>   r  r  -  sL    NN'_ 'c ' 'S
 I Ir@   r  c                   F    e Zd ZdZdZdddee   fdZd Zd Z	e
d	        Zy
)ReadEncryptedHistoryRequesti
iKr   r7   r   r  c                      || _         || _        yr   r7   r  )r=   r7   r  s      r>   r?   z$ReadEncryptedHistoryRequest.__init__X  r  r@   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  )rB   r7   r  )rC   r7   r   rD   r  rE   s    r>   rD   z#ReadEncryptedHistoryRequest.to_dict_  s<    .+5dii+JDII%%'PTPYPY
 	
r@   c                     dj                  d| j                  j                         | j                  | j                        f      S )Nr@   s   
iK)rH   r7   rI   r  r  rE   s    r>   rI   z"ReadEncryptedHistoryRequest._bytesf  s=    xxII##DMM2
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  )rN   r  )rQ   rR   rS   r  s       r>   rV   z'ReadEncryptedHistoryRequest.from_readerm  s+    $$&&&(		22r@   N)rX   rY   rZ   r[   r\   r   r
   r?   rD   rI   r_   rV   r`   r@   r>   r  r  T  sC    NN!5 !(AS !
 3 3r@   r  c                   B    e Zd ZdZdZdee   fdZd Zd Z	e
d        Zy)	ReadFeaturedStickersRequesti&[r   r  c                     || _         yr   r  r  s     r>   r?   z$ReadFeaturedStickersRequest.__init__x  r  r@   c                 F    d| j                   g dS | j                   d d  dS )Nr  r  r  rE   s    r>   rD   z#ReadFeaturedStickersRequest.to_dict~  s/    ."
 	
-1WWQZ
 	
r@   c           
          dj                  ddt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   &[r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z5ReadFeaturedStickersRequest._bytes.<locals>.<genexpr>  r  r  r  rE   s    r>   rI   z"ReadFeaturedStickersRequest._bytes  r  r@   c                     |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |      S r  r  r  s        r>   rV   z'ReadFeaturedStickersRequest.from_reader  r  r@   Nr  r`   r@   r>   r  r  t  r  r@   r  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)ReadHistoryRequesti:m0r  r7   r    r  c                      || _         || _        yr  r7   r  )r=   r7   r  s      r>   r?   zReadHistoryRequest.__init__  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zReadHistoryRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  )rB   r7   r  )rC   r7   r   rD   r  rE   s    r>   rD   zReadHistoryRequest.to_dict  s<    %+5dii+JDII%%'PTPYPYkk
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   :m0r}   )rH   r7   rI   rK   rL   r  rE   s    r>   rI   zReadHistoryRequest._bytes  r  r@   c                 V    |j                         }|j                         } | ||      S )Nr  r  )rQ   rR   rS   r  s       r>   rV   zReadHistoryRequest.from_reader  r  r@   Nr   r`   r@   r>   r  r    sC    NN_ c S
 / /r@   r  c                   N    e Zd ZdZdZddddee   fdZd Zd	 Z	d
 Z
ed        Zy)ReadMentionsRequestiM6r  Nr7   r    r  c                      || _         || _        yr  r  r  s      r>   r?   zReadMentionsRequest.__init__  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zReadMentionsRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  r  r  rE   s    r>   rD   zReadMentionsRequest.to_dict  s<    &+5dii+JDII%%'PTPYPY//
 	
r@   c           	      :   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  | j                  du rdf      S t        j                  d| j                        f      S )Nr@   s   M6ry   Fr   rz   r}   )rH   rK   rL   r  r7   rI   rE   s    r>   rI   zReadMentionsRequest._bytes  s    xxKKDOO$;tRW?Wq]^`II??*doo.FC	
  	 NT[[Y]_c_n_nMo	
  	r@   c                     |j                         }|j                         }|dz  r|j                         }nd } | ||      S )Nrz   r  r  )rQ   rR   r   rS   r  s        r>   rV   zReadMentionsRequest.from_reader  sA    !$$&19 //+KK+66r@   rl   r(  r`   r@   r>   r  r    sG    NN%_ %(3- %S
 7 7r@   r  c                   B    e Zd ZdZdZdee   fdZd Zd Z	e
d        Zy)	ReadMessageContentsRequestiw?6r  r  c                     || _         yr  r  r  s     r>   r?   z#ReadMessageContentsRequest.__init__  r  r@   c                 F    d| j                   g dS | j                   d d  dS )Nr  r  r  rE   s    r>   rD   z"ReadMessageContentsRequest.to_dict  s/    -"
 	
-1WWQZ
 	
r@   c           
          dj                  ddt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   w?6r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z4ReadMessageContentsRequest._bytes.<locals>.<genexpr>  r  r  r  rE   s    r>   rI   z!ReadMessageContentsRequest._bytes  sK    xxD#dgg, ?HogkgngnHo@o
  	r@   c                     |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |      S r  r  r  s        r>   rV   z&ReadMessageContentsRequest.from_reader  sO    v() 	A"BJJrN	 c{r@   Nr  r`   r@   r>   r  r    r  r@   r  c                   X    e Zd ZdZdZddddee   ded   fdZd	 Zd
 Z	d Z
ed        Zy)ReadReactionsRequestl   O= r  Nr7   r    r  r  c                 .    || _         || _        || _        yr  r7   r  r  r=   r7   r  r  s       r>   r?   zReadReactionsRequest.__init__       	$*r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   r  rp   s      r>   rs   zReadReactionsRequest.resolve  r  rM  c                     dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         dS | j
                  dS )Nr  rB   r7   r  r  rC   r7   r   rD   r  r  rE   s    r>   rD   zReadReactionsRequest.to_dict  su    '+5dii+JDII%%'PTPYPY//=GHZHZ\d=eT//779	
 	
 lpk}k}	
 	
r@   c           	         dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j
                  j                         | j                  | j                  du rdnt        j                  d| j                        | j                  | j                  du rdf      S | j                  j                         f      S )	Nr@   s   OĞry   Fr   rz   r{   r}   rH   rK   rL   r  r  r7   rI   rE   s    r>   rI   zReadReactionsRequest._bytes  s   xxKKDOO$;tRW?Wq]^hlhzhz  iC  GK  GY  GY  ]b  Gbcd  hi  j  kII??*doo.FCV[[Y]_c_n_nMo%%-1C1Cu1LC
  	
 TXSeSeSlSlSn
  	r@   c                     |j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd } | |||      S Nrz   r{   r   r  rQ   rR   r   rS   r  r  s         r>   rV   z ReadReactionsRequest.from_reader$  ]    !$$&19 //+KK19#113N!N+^TTr@   r8  r(  r`   r@   r>   r  r    sW    NN+_ +(3- +]efu]v +i

 U Ur@   r  c                   J    e Zd ZdZdZdddddefdZd Zd	 Zd
 Z	e
d        Zy)ReadSavedHistoryRequestl   [;t r   r  r    r7   r  c                 .    || _         || _        || _        yr   r  r7   r  )r=   r  r7   r  s       r>   r?   z ReadSavedHistoryRequest.__init__8  s     '	r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   )rn   ro   r  r7   rp   s      r>   rs   zReadSavedHistoryRequest.resolve@  s[      //f6M6MdN^N^6_0_`((v/F/Ftyy/Q)QR	 1`)Qr  c                    dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  dS )Nr  )rB   r  r7   r  )rC   r  r   rD   r7   r  rE   s    r>   rD   zReadSavedHistoryRequest.to_dictD  sg    *9CDDTDTV^9_4++335eieueu+5dii+JDII%%'PTPYPYkk	
 	
r@   c           	          dj                  d| j                  j                         | j                  j                         t	        j
                  d| j                        f      S )Nr@   s   [;Jr}   )rH   r  rI   r7   rK   rL   r  rE   s    r>   rI   zReadSavedHistoryRequest._bytesL  sO    xx##%IIKKdkk*	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr  r  )rQ   rR   r  rS   r  s        r>   rV   z#ReadSavedHistoryRequest.from_readerT  s9    ++-$$&//#|%HHr@   Nr   r`   r@   r>   r  r  4  sM    NNO ? TW S
 I Ir@   r  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	ReceivedMessagesRequestiTl   x
 r  c                     || _         y)zX
        :returns Vector<ReceivedNotifyMessage>: This type has no constructors.
        Nr  )r=   r  s     r>   r?   z ReceivedMessagesRequest.__init__`  r  r@   c                      d| j                   dS )Nr  )rB   r  r  rE   s    r>   rD   zReceivedMessagesRequest.to_dictf  s    *kk
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   Tr}   )rH   rK   rL   r  rE   s    r>   rI   zReceivedMessagesRequest._bytesl  -    xxKKdkk*
  	r@   c                 4    |j                         } | |      S )Nr  r  )rQ   rR   r  s      r>   rV   z#ReceivedMessagesRequest.from_readerr      //#'""r@   Nrf  r`   r@   r>   r  r  \  s6    NNs 
 # #r@   r  c                   L    e Zd ZdZdZdefdZd Zd Ze	d        Z
ed        Zy	)
ReceivedQueueRequestifUl   ha1 max_qtsc                     || _         y)zG
        :returns Vector<long>: This type has no constructors.
        Nr   )r=   r   s     r>   r?   zReceivedQueueRequest.__init__|  r[  r@   c                      d| j                   dS )Nr  )rB   r   r"  rE   s    r>   rD   zReceivedQueueRequest.to_dict  s    '||
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   fUr}   )rH   rK   rL   r   rE   s    r>   rI   zReceivedQueueRequest._bytes  r`  r@   c                 4    |j                         } | |      S )Nr"  r  )rQ   rR   _max_qtss      r>   rV   z ReceivedQueueRequest.from_reader  s    ??$8$$r@   c                     | j                          t        | j                               D cg c]  }| j                          c}S c c}w rl   )r   r   rP   )rR   rB   s     r>   read_resultz ReceivedQueueRequest.read_result  s5    ,1&//2C,DEq  "EEEs   AN)rX   rY   rZ   r[   r\   r^   r?   rD   rI   r_   rV   staticmethodr(  r`   r@   r>   r  r  x  sL    NN 
 % % F Fr@   r  c                   X    e Zd ZdZdZddeded   dee   fdZ	d	 Z
d
 Zd Zed        Zy)ReorderPinnedDialogsRequesti7;r   Nr  orderr   forcec                 .    || _         || _        || _        yr   r  r,  r-  )r=   r  r,  r-  s       r>   r?   z$ReorderPinnedDialogsRequest.__init__  s     #

r@   c                    K   g }| j                   D ]*  }|j                  |j                  |       d {          , || _         y 7 wrl   r,  r   rR  r7  s        r>   rs   z#ReorderPinnedDialogsRequest.resolve  rS  rT  c           	          d| j                   | j                  g n9| j                  D cg c]$  }t        |t              r|j	                         n|& c}| j
                  dS c c}w )Nr+  )rB   r  r,  r-  )r  r,  rC   r   rD   r-  r   s     r>   rD   z#ReorderPinnedDialogsRequest.to_dict  sZ    .::-Rkokuku3vfg:aQYCZAIIK`a4a3vZZ	
 	
 4ws   )A"c                 Z   dj                  dt        j                  d| j                  | j                  du rdnd      t        j                  d| j                        dt        j                  dt        | j                              dj                  d	 | j                  D              f      S )
Nr@   s   7;ry   Fr   rz   r}   r   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z5ReorderPinnedDialogsRequest._bytes.<locals>.<genexpr>  r<  r   )rH   rK   rL   r-  r  r   r,  rE   s    r>   rI   z"ReorderPinnedDialogsRequest._bytes  s    xxKKDJJ$6$**:MqSTVKKdnn-D#djj/ B388Kk`d`j`jKkCk	
  	r@   c                    |j                         }t        |dz        }|j                         }|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       %  | |||      S )Nrz   r/  r   r   r   rN   r   )rQ   rR   r   _forcer  _orderrB   r   s           r>   rV   z'ReorderPinnedDialogsRequest.from_reader  s|    !eai__&
v() 	A%%'BMM"	 ZvVDDr@   rl   )rX   rY   rZ   r[   r\   r^   r   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r+  r+    sX    NN# d3H.I RZ[_R` 
 E Er@   r+  c                   X    e Zd ZdZdZddddee   dee   fdZ	d	 Z
d
 Zd Zed        Zy)ReorderPinnedForumTopicsRequestiAxr   Nr7   r    r,  r-  c                 .    || _         || _        || _        yr   r7   r,  r-  )r=   r7   r,  r-  s       r>   r?   z(ReorderPinnedForumTopicsRequest.__init__  s     	

r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z'ReorderPinnedForumTopicsRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g n| j                  d d  | j
                  dS )Nr:  )rB   r7   r,  r-  )rC   r7   r   rD   r,  r-  rE   s    r>   rD   z'ReorderPinnedForumTopicsRequest.to_dict  sR    2+5dii+JDII%%'PTPYPY::-R4::a=ZZ	
 	
r@   c                 N   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         dt        j                  dt        | j                              dj                  d	 | j                  D              f      S )
Nr@   s   Axry   Fr   rz   r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z9ReorderPinnedForumTopicsRequest._bytes.<locals>.<genexpr>       KuefFKKX\^_L`Kur  )rH   rK   rL   r-  r7   rI   r   r,  rE   s    r>   rI   z&ReorderPinnedForumTopicsRequest._bytes  s    xxKKDJJ$6$**:MqSTVIID#djj/ B388KujnjtjtKuCu	
  	r@   c                    |j                         }t        |dz        }|j                         }|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       %  | |||      S )Nrz   r<  r   r   rN   r   r   )rQ   rR   r   r7  rS   r8  rB   r   s           r>   rV   z+ReorderPinnedForumTopicsRequest.from_reader  s|    !eai$$&v() 	A"BMM"	 V6::r@   rl   rX   rY   rZ   r[   r\   r   r^   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r:  r:    sS    NN_ T#Y xPT~ S
 ; ;r@   r:  c                   T    e Zd ZdZdZdded   dee   fdZd Z	d	 Z
d
 Zed        Zy) ReorderPinnedSavedDialogsRequestl   e r   Nr,  r   r-  c                      || _         || _        yr   r,  r-  )r=   r,  r-  s      r>   r?   z)ReorderPinnedSavedDialogsRequest.__init__  s     

r@   c                    K   g }| j                   D ]*  }|j                  |j                  |       d {          , || _         y 7 wrl   r1  r7  s        r>   rs   z(ReorderPinnedSavedDialogsRequest.resolve  rS  rT  c                     d| j                   g n9| j                   D cg c]$  }t        |t              r|j                         n|& c}| j                  dS c c}w )NrF  )rB   r,  r-  )r,  rC   r   rD   r-  r   s     r>   rD   z(ReorderPinnedSavedDialogsRequest.to_dict  sP    3::-Rkokuku3vfg:aQYCZAIIK`a4a3vZZ
 	
3vs   )Ac                    dj                  dt        j                  d| j                  | j                  du rdnd      dt        j                  dt	        | j
                              dj                  d	 | j
                  D              f      S )
Nr@   s   eqry   Fr   rz   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z:ReorderPinnedSavedDialogsRequest._bytes.<locals>.<genexpr>  r<  r   )rH   rK   rL   r-  r   r,  rE   s    r>   rI   z'ReorderPinnedSavedDialogsRequest._bytes  sp    xxKKDJJ$6$**:MqSTVD#djj/ B388Kk`d`j`jKkCk
  	r@   c                     |j                         }t        |dz        }|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       %  | ||      S )Nrz   rH  r6  )rQ   rR   r   r7  r8  rB   r   s          r>   rV   z,ReorderPinnedSavedDialogsRequest.from_reader  sn    !eaiv() 	A%%'BMM"	 v..r@   rl   )rX   rY   rZ   r[   r\   r   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   rF  rF    sL    NNd#89 (4. 
 
/ 
/r@   rF  c                   B    e Zd ZdZdZdee   fdZd Zd Z	e
d        Zy)	ReorderQuickRepliesRequesti3`r   r,  c                     || _         yr   r,  r=   r,  s     r>   r?   z#ReorderQuickRepliesRequest.__init__+  rO  r@   c                 F    d| j                   g dS | j                   d d  dS )NrO  rB   r,  rQ  rE   s    r>   rD   z"ReorderQuickRepliesRequest.to_dict1  s0    -::-R
 	
37::a=
 	
r@   c           
          dj                  ddt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   3`r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z4ReorderQuickRepliesRequest._bytes.<locals>.<genexpr>:  rA  r  rH   rK   rL   r   r,  rE   s    r>   rI   z!ReorderQuickRepliesRequest._bytes7  sK    xxD#djj/ B388KujnjtjtKuCu
  	r@   c                     |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |      S NrQ  r  rQ   rR   r8  rB   r   s        r>   rV   z&ReorderQuickRepliesRequest.from_reader=  Q    v() 	A"BMM"	   r@   Nr  r`   r@   r>   rO  rO  '  :    NNd3i 
 ! !r@   rO  c                   X    e Zd ZdZdZddee   dee   dee   fdZ	d Z
d	 Zed
        Zy)ReorderStickerSetsRequesti9w3xr   Nr,  r,  r-  c                 .    || _         || _        || _        yr   r,  r,  r-  )r=   r,  r,  r-  s       r>   r?   z"ReorderStickerSetsRequest.__init__L  s     

r@   c                 n    d| j                   g n| j                   d d  | j                  | j                  dS )Nr^  )rB   r,  r,  r-  r`  rE   s    r>   rD   z!ReorderStickerSetsRequest.to_dictT  s3    ,::-R4::a=ZZkk	
 	
r@   c                 Z   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        dt        j                  d	t        | j                              dj                  d
 | j                  D              f      S )Nr@   s   9w3xry   Fr   rz   r{   r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z3ReorderStickerSetsRequest._bytes.<locals>.<genexpr>`  rA  r  )rH   rK   rL   r,  r-  r   r,  rE   s    r>   rI   z ReorderStickerSetsRequest._bytes\  s    xxKKDJJ$6$**:MqST^b^i^i^quy  vA  vA  EJ  vJYZ  PQ  R  SD#djj/ B388KujnjtjtKuCu
  	r@   c                    |j                         }t        |dz        }t        |dz        }|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       %  | |||      S )Nrz   r{   r`  )r   r   r   rP   r   )rQ   rR   r   r4  r5  r8  rB   r   s           r>   rV   z%ReorderStickerSetsRequest.from_readerc  s}    !eaiuqy/v() 	A!!#BMM"	 vg>>r@   r8  r  r`   r@   r>   r^  r^  H  sQ    NNd3i  XVZ^ 
 ? ?r@   r^  c                   T    e Zd ZdZdZdddee   dedefdZ	d	 Z
d
 Zd Zed        Zy)ReportRequestl   /x l   8tY r7   r    r  rx  r  c                 <    || _         || _        || _        || _        y)z
        :returns ReportResult: Instance of either ReportResultChooseOption, ReportResultAddComment, ReportResultReported.
        Nr7   r  rx  r  )r=   r7   r  rx  r  s        r>   r?   zReportRequest.__init__v  s      	r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zReportRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g n| j                  d d  | j
                  | j                  dS )Nrf  )rB   r7   r  rx  r  )rC   r7   r   rD   r  rx  r  rE   s    r>   rD   zReportRequest.to_dict  sX     +5dii+JDII%%'PTPYPY"TWWQZkk||
 	
r@   c                 T   dj                  d| j                  j                         dt        j                  dt        | j                              dj                  d | j                  D              | j                  | j                        | j                  | j                        f      S )Nr@   s   xr   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z'ReportRequest._bytes.<locals>.<genexpr>  r  r  )
rH   r7   rI   rK   rL   r   r  rJ   rx  r  rE   s    r>   rI   zReportRequest._bytes  s    xxIID#dgg, ?HogkgngnHo@o  -  .
  	r@   c                    |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % |j	                         }|j                         } | ||||      S )Nrh  )rN   r   r   r   rO   r   )rQ   rR   rS   r  rB   r   r  r  s           r>   rV   zReportRequest.from_reader  s    $$&v() 	A"BJJrN	 %%''')#gxHHr@   N)rX   rY   rZ   r[   r\   r   r^   r]   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   rf  rf  r  sX    NN_ $s) U UX S
 
I 
Ir@   rf  c                   8    e Zd ZdZdZddZd Zd Zed        Z	y)	ReportEncryptedSpamRequestiKr   c                     || _         yr   r   r   s     r>   r?   z#ReportEncryptedSpamRequest.__init__  r   r@   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nro  r   r   rE   s    r>   rD   z"ReportEncryptedSpamRequest.to_dict  r  r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   Kr   rE   s    r>   rI   z!ReportEncryptedSpamRequest._bytes  r   r@   c                 4    |j                         } | |      S r   r   r   s      r>   rV   z&ReportEncryptedSpamRequest.from_reader  r   r@   N)r7   r   rS  r`   r@   r>   ro  ro    s/    NN
  r@   ro  c                   X    e Zd ZdZdZddddee   dee   fdZ	d	 Z
d
 Zd Zed        Zy)ReportMessagesDeliveryRequestismZr   Nr7   r    r  pushc                 .    || _         || _        || _        yr   r7   r  rv  )r=   r7   r  rv  s       r>   r?   z&ReportMessagesDeliveryRequest.__init__  s     		r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z%ReportMessagesDeliveryRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g n| j                  d d  | j
                  dS )Nru  )rB   r7   r  rv  )rC   r7   r   rD   r  rv  rE   s    r>   rD   z%ReportMessagesDeliveryRequest.to_dict  sQ    0+5dii+JDII%%'PTPYPY"TWWQZII	
 	
r@   c                 N   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         dt        j                  dt        | j                              dj                  d	 | j                  D              f      S )
Nr@   s   smZry   Fr   rz   r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z7ReportMessagesDeliveryRequest._bytes.<locals>.<genexpr>  r  r  )rH   rK   rL   rv  r7   rI   r   r  rE   s    r>   rI   z$ReportMessagesDeliveryRequest._bytes  s    xxKKDII$5e9KqQRTIID#dgg, ?HogkgngnHo@o	
  	r@   c                    |j                         }t        |dz        }|j                         }|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       %  | |||      S )Nrz   rx  rC  )rQ   rR   r   _pushrS   r  rB   r   s           r>   rV   z)ReportMessagesDeliveryRequest.from_reader  s{    !UQY$$&v() 	A"BJJrN	 #E22r@   rl   rD  r`   r@   r>   ru  ru    sR    NN_ $s) 8D> S
 3 3r@   ru  c                   J    e Zd ZdZdZdddeddfdZd Zd	 Zd
 Z	e
d        Zy)ReportReactionRequestivd?r   r7   r    r  reaction_peerc                 .    || _         || _        || _        yr   r7   r  r  )r=   r7   r  r  s       r>   r?   zReportReactionRequest.__init__  s     	*r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   )rn   ro   r7   r  rp   s      r>   rs   zReportReactionRequest.resolve  s\     ((v/F/Ftyy/Q)QR	"118O8OPTPbPb8c2cd *R2cr  c                     dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         dS | j
                  dS )Nr  )rB   r7   r  r  )rC   r7   r   rD   r  r  rE   s    r>   rD   zReportReactionRequest.to_dict  su    (+5dii+JDII%%'PTPYPY''=GHZHZ\d=eT//779	
 	
 lpk}k}	
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        | j                  j                         f      S )Nr@   s   vd?r}   )rH   r7   rI   rK   rL   r  r  rE   s    r>   rI   zReportReactionRequest._bytes  sO    xxIIKKdgg&%%'	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr  r  )rQ   rR   rS   r  _reaction_peers        r>   rV   z!ReportReactionRequest.from_reader  s9    $$&oo--/#^DDr@   Nr   r`   r@   r>   r  r    sL    NN+_ +# +o +e
 E Er@   r  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
ReportSpamRequestl   + r   c                     || _         yr   r   r   s     r>   r?   zReportSpamRequest.__init__  r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zReportSpamRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nr  r   r   rE   s    r>   rD   zReportSpamRequest.to_dict!  r;  r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   ےr   rE   s    r>   rI   zReportSpamRequest._bytes'  r`  r@   c                 4    |j                         } | |      S r   r   r   s      r>   rV   zReportSpamRequest.from_reader-  r   r@   Nr   r   r`   r@   r>   r  r    r   r@   r  c                   B    e Zd ZdZdZd
dedefdZd Zd Ze	d	        Z
y)ReportSponsoredMessageRequestii"#&Nrx  r  c                     || _         ||| _        yt        j                  t        j                  d      dd      | _        y)z
        :returns channels.SponsoredMessageReportResult: Instance of either SponsoredMessageReportResultChooseOption, SponsoredMessageReportResultAdsHidden, SponsoredMessageReportResultReported.
        Nr|   r!  Tr"  )rx  r^   r$  r%  r&  r  )r=   rx  r  s      r>   r?   z&ReportSponsoredMessageRequest.__init__7  s;     &/&;PRPZPZ[\P]_dmqArr@   c                 6    d| j                   | j                  dS )Nr  )rB   rx  r  rx  r  rE   s    r>   rD   z%ReportSponsoredMessageRequest.to_dict>  s    0kk
 	
r@   c                     dj                  d| j                  | j                        | j                  | j                        f      S )Nr@   s   )rH   rJ   r  rx  rE   s    r>   rI   z$ReportSponsoredMessageRequest._bytesE  s?    xx  0  -
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  rO   )rQ   rR   r-  r  s       r>   rV   z)ReportSponsoredMessageRequest.from_readerL  s+    ((*
%%''Z88r@   rl   rX   rY   rZ   r[   r\   r]   r?   rD   rI   r_   rV   r`   r@   r>   r  r  3  s@    NNsu s s
 9 9r@   r  c                   ~    e Zd ZdZdZdddddded	ee   d
ee   dee   dee   ded   fdZd Z	d Z
d Zed        Zy)RequestAppWebViewRequesti΋aS   F'' Nr7   r    rf  r   platformrd   compactr  start_paramtheme_paramsr   c	                 t    || _         || _        || _        || _        || _        || _        || _        || _        yzG
        :returns WebViewResult: Instance of WebViewResultUrl.
        Nr7   rf  r  rd   r  r  r  r  )	r=   r7   rf  r  rd   r  r  r  r  s	            r>   r?   z!RequestAppWebViewRequest.__init__W  s?     	 *$&(r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z RequestAppWebViewRequest.resolved  r   r   c                    dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         d	S | j                  d	S )Nr  )	rB   r7   rf  r  rd   r  r  r  r  )rC   r7   r   rD   rf  r  rd   r  r  r  r  rE   s    r>   rD   z RequestAppWebViewRequest.to_dictg  s    ++5dii+JDII%%'PTPYPY)3DHHh)G488##%TXX!//||//++;EdFWFWYa;bD--557

 
	
 imhyhy

 
	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z        | j                  j                         | j                  j                         | j                  | j                  du rdn| j                  | j                        | j                  | j                  du rdn| j                  j                         | j                  | j                        f      S )Nr@   s   ΋aSry   Fr   rz      r  r{   r|   )rH   rK   rL   rd   r  r  r  r  r7   rI   rf  rJ   r  rE   s    r>   rI   zRequestAppWebViewRequest._bytest  s   xxKKD$6$6$>$BTBTX]B]qcdnrnznz  oC  GK  GS  GS  W\  G\ij  be  f  os  o~  o~  oF  JN  JY  JY  ]b  Jb  jk  hk  l  uy  uE  uE  uM  QU  Qa  Qa  ej  Qj  pq  pq  r  {  {L  {L  {T  X\  Xi  Xi  mr  Xr  vw  xy  z  {IIHHOO##+t/?/?5/HCtOcOcdhdtdtOu$$,0A0AU0JCQUQbQbQiQiQk  /
  	r@   c           
      V   |j                         }t        |dz        }t        |dz        }t        |dz        }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }	nd }	|j                         }
 | |||
|||||	      S )Nrz   r  r  r{   r|   r  r   )rQ   rR   r   r   _compactr,  rS   rn  _start_param_theme_params	_platforms              r>   rV   z$RequestAppWebViewRequest.from_reader  s    !eai$53;'$$&##%19!//1LL19"002M M((*	4)>ck  yD  R^  mz  {  	{r@   r   rX   rY   rZ   r[   r\   r   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  S  s    NN)_ )3D )PS )dlmqdr )  CK  LP  CQ )  dl  mq  dr )  FN  OR  FS )  hp  q  h@ )S
	 { {r@   r  c                   L    e Zd ZdZdZddddedefdZd	 Zd
 Z	d Z
ed        Zy)RequestEncryptionRequestl   C/l r6   Nr   r&   g_ar  c                     || _         || _        ||| _        yt        j                  t	        j
                  d      dd      | _        y)r;   Nr|   r!  Tr"  )r   r  r^   r$  r%  r&  r  )r=   r   r  r  s       r>   r?   z!RequestEncryptionRequest.__init__  sB     &/&;PRPZPZ[\P]_dmqArr@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z RequestEncryptionRequest.resolve  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )Nr  )rB   r   r  r  )rC   r   r   rD   r  r  rE   s    r>   rD   z RequestEncryptionRequest.to_dict  sC    +1;DLL(1St||++-Y]YeYe88	
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        | j                  | j                        f      S )Nr@   s   CMr}   )rH   r   rI   rK   rL   r  rJ   r  rE   s    r>   rI   zRequestEncryptionRequest._bytes  sO    xxLL!KKdnn-  *	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )N)r   r  r  )rN   r   rO   )rQ   rR   r   r-  _g_as        r>   rV   z$RequestEncryptionRequest.from_reader  s9    '')__&
""$8DDr@   rl   )rX   rY   rZ   r[   r\   r]   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    sP    NNs se s sY
 E Er@   r  c                   t    e Zd ZdZdZdddddded	ee   d
ee   dee   ded   fdZd Z	d Z
d Zed        Zy)RequestMainWebViewRequestl   { r  Nr7   r    r=  r&   r  r  r  r  r  r   c                 f    || _         || _        || _        || _        || _        || _        || _        yr  r7   r=  r  r  r  r  r  )r=   r7   r=  r  r  r  r  r  s           r>   r?   z"RequestMainWebViewRequest.__init__  s7     	 $&(r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   )rn   ro   r7   r   r=  rp   s      r>   rs   z!RequestMainWebViewRequest.resolve  sX     ((v/F/Ftyy/Q)QR	''f.E.Edhh.O(OP *R(Or  c                    dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r7   r=  r  r  r  r  r  )
rC   r7   r   rD   r=  r  r  r  r  r  rE   s    r>   rD   z!RequestMainWebViewRequest.to_dict  s    ,+5dii+JDII%%'PTPYPY)3DHHh)G488##%TXX||//++;EdFWFWYa;bD--557	
 		
 imhyhy	
 		
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z        | j                  j                         | j                  j                         | j
                  | j
                  du rdn| j                  | j
                        | j                  | j                  du rdn| j                  j                         | j                  | j                        f      S )
Nr@   s   {ry   Fr   r  r  r{   rz   )rH   rK   rL   r  r  r  r  r7   rI   r=  rJ   r  rE   s    r>   rI   z RequestMainWebViewRequest._bytes  s   xxKKDLL$8DLLE<QqWZdhdsdsd{  @D  @O  @O  SX  @X_`  ^a  b  ko  k{  k{  kC  GK  GW  GW  [`  G`  fg  fg  h  qu  qB  qB  qJ  NR  N_  N_  ch  Nh  lm  no  p  qIIHHOO##+t/?/?5/HCtOcOcdhdtdtOu$$,0A0AU0JCQUQbQbQiQiQk  /
  	r@   c           	      8   |j                         }t        |dz        }t        |dz        }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|j                         }	 | |||	||||      S )Nr  r  r{   rz   r  r   )
rQ   rR   r   r  r,  rS   rD  r  r  r  s
             r>   rV   z%RequestMainWebViewRequest.from_reader  s    !$53;'$$&##%19!//1LL19"002M M((*	4)XZes  O\  ]  	]r@   r  r  r`   r@   r>   r  r    s    NN
)_ 
)? 
)c 
)\dei\j 
)  ~F  GK  ~L 
)  `h  il  `m 
)  BJ  KY  BZ 
)Q

	 ] ]r@   r  c                       e Zd ZdZdZddddedee   dee   d	ee   d
ee   dee   dee   ded   fdZd Z	d Z
d Zed        Zy)RequestSimpleWebViewRequestis>:Ar  Nr=  r&   r  from_switch_webviewfrom_side_menur  r  rg   r  r  r   c
                     || _         || _        || _        || _        || _        || _        || _        || _        |	| _        yr  	r=  r  r  r  r  r  rg   r  r  )
r=   r=  r  r  r  r  r  rg   r  r  s
             r>   r?   z$RequestSimpleWebViewRequest.__init__  sG      #6 ,$&(r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r?  rp   s      r>   rs   z#RequestSimpleWebViewRequest.resolve  r@  r   c                    dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         d
S | j                  d
S )Nr  )
rB   r=  r  r  r  r  r  rg   r  r  )rC   r=  r   rD   r  r  r  r  r  rg   r  r  rE   s    r>   rD   z#RequestSimpleWebViewRequest.to_dict  s    .)3DHHh)G488##%TXX#'#;#;"11||//88++;EdFWFWYa;bD--557
 	
 imhyhy
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz  | j                  | j                  du rdndz        | j                  j                         | j                  | j                  du rdn| j                  | j                        | j                  | j                  du rdn| j                  | j                        | j                  | j                  du rdn| j                  j                         | j                  | j                        f      S )Nr@   s   s>:Ary   Fr   r{   r|   r  r  rI  rP  rz   )rH   rK   rL   r  r  r  r  rg   r  r  r=  rI   rJ   r  rE   s    r>   rI   z"RequestSimpleWebViewRequest._bytes  s   xxKKD$<$<$DH`H`diHiqopz~  {N  {N  {V  Z^  Zm  Zm  qv  Zvuv  |}  ~  GK  GS  GS  G[  _c  _k  _k  ot  _t  BC  z}  ~  GK  GV  GV  G^  bf  bq  bq  uz  bz  BC  @C  D  MQ  MU  MU  M]  ae  ai  ai  mr  ar  HI  xy  z  CG  CS  CS  C[  _c  _o  _o  sx  _x  ~  ~@  A  JN  J[  J[  Jc  gk  gx  gx  |A  gA  EF  GH  I  JHHOO88#txx5'8Ct?S?STXT\T\?]##+t/?/?5/HCtOcOcdhdtdtOu$$,0A0AU0JCQUQbQbQiQiQk  /
  	r@   c                    |j                         }t        |dz        }t        |dz        }t        |dz        }t        |dz        }|j                         }|dz  r|j                         }nd }|dz  r|j                         }	nd }	|dz  r|j                         }
nd }
|j                         } | ||||||||	|
	      S )	Nr{   r|   r  r  rI  rP  rz   r  r   )rQ   rR   r   _from_switch_webview_from_side_menur  r,  rD  r   r  r  r  s               r>   rV   z'RequestSimpleWebViewRequest.from_reader(  s    !#EAIuqy/$53;'##%19'')DD2:!//1LL19"002M M((*	tiEYjy  DL  Yd  jn  |H  Wd  e  	er@   NNNNNNNr  r`   r@   r>   r  r    s    NN)O )s )QYZ^Q_ )v~  @D  wE )  U]  ^b  Uc )  v~  C  vD )  PX  Y\  P] )  qy  z}  q~ )  S[  \j  Sk )Q
	 e er@   r  c            
       h    e Zd ZdZdZdded   dee   dee   dee   fd	Zd
 Z	d Z
d Zed        Zy)RequestUrlAuthRequestiFrc   Nr7   r    re   rf   rg   c                 <    || _         || _        || _        || _        yri   r7   re   rf   rg   )r=   r7   re   rf   rg   s        r>   r?   zRequestUrlAuthRequest.__init__E  s      	"r@   c                    K   | j                   r8|j                  |j                  | j                          d {         | _         y y 7 wrl   rm   rp   s      r>   rs   zRequestUrlAuthRequest.resolveN  rt   ru   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  dS )Nr  )rB   r7   re   rf   rg   )rC   r7   r   rD   re   rf   rg   rE   s    r>   rD   zRequestUrlAuthRequest.to_dictR  sJ    (+5dii+JDII%%'PTPYPYkk88
 	
r@   c           
      H   | j                   s| j                   0| j                  s| j                  | j                  sa| j                  U| j                   | j                   du r4| j                  | j                  du r| j                  | j                  du sJ d       dj                  dt	        j
                  d| j                   | j                   du rdnd| j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz        | j                   | j                   du rdn| j                   j                         | j                  | j                  du rdnt	        j
                  d	| j                        | j                  | j                  du rdnt	        j
                  d	| j                        | j                  | j                  du rdf      S | j                  | j                        f      S )
NFrx   r@   s   Fry   r   r{   r|   r}   )	r7   re   rf   rH   rK   rL   rg   rI   rJ   rE   s    r>   rI   zRequestUrlAuthRequest._bytes[  s   dii3$++I`gkguguy}  zH  zH  zT  \`  \e  \e  \m  qu  qz  qz  ~C  qC  JN  JU  JU  J]  ae  al  al  pu  au  |@  |J  |J  |R  VZ  Vd  Vd  hm  Vm  	F  qF  	F  oxxKKDII$5e9KqQR\`\g\g\osws~s~  CH  tHWX  NO  P  Y]  Yg  Yg  Yo  sw  sA  sA  EJ  sJ  TU  PQ  R  [_  [c  [c  [k  os  ow  ow  {@  o@  VW  FG  H  I99$		U(:CAQAQAS;;&$++*>CV[[QUW[WbWbEc>>)T^^u-DC6;;W[]a]k]kKl88#txx5'8C
  	 @D?S?STXT\T\?]
  	r@   c                     |j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd } | ||||      S )Nr{   r|   r  r  )rQ   rR   r   rS   r   r   r   s          r>   rV   z!RequestUrlAuthRequest.from_readerf  s    !19((*EE19oo'GG19*JJ19'')DDgNNr@   r  )rX   rY   rZ   r[   r\   r   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  A  sv    NNXo6 Xc] dlmpdq   ~F  GJ  ~K W
	 O Or@   r  c                       e Zd ZdZdZdddddded	ee   d
ee   dee   dee   dee   dee   ded   ded   ded   fdZd Z	d Z
d Zed        Zy)RequestWebViewRequesti&r  Nr7   r    r=  r&   r  from_bot_menur  r  r  rg   r  r  r   r  r"   rF  c                     || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        || _
        || _        yr  r7   r=  r  r  r  r  r  rg   r  r  r  rF  )r=   r7   r=  r  r  r  r  r  rg   r  r  r  rF  s                r>   r?   zRequestWebViewRequest.__init__  s[     	 *$&( r@   c                 |  K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        | j
                  r8|j                  |j                  | j
                         d {         | _        y y 7 7 T7 wrl   r  rp   s      r>   rs   zRequestWebViewRequest.resolve  r  r  c                    dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  | j                  | j                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r7   r=  r  r  r  r  r  rg   r  r  r  rF  )rC   r7   r   rD   r=  r  r  r  r  r  rg   r  r  r  rF  rE   s    r>   rD   zRequestWebViewRequest.to_dict  s   (+5dii+JDII%%'PTPYPY)3DHHh)G488##%TXX!//kk||//88++;EdFWFWYa;bD--557hlhyhy3=dmmX3V--/\`\i\i1;DLL(1St||++-
 	
 Z^YeYe
 	
r@   c                 0   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz        | j                  j                         | j                  j                         | j                  | j                  du rdn| j                  | j                        | j                  | j                  du rdn| j                  | j                        | j                  | j                  du rdn| j                  j                         | j                  | j                         | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdf
      S | j                  j                         f
      S )Nr@   s   &ry   Fr   rP  r  r  r  r{   rI  r|   rz   r  )rH   rK   rL   r  r  r  r  rg   r  r  r  rF  r7   rI   r=  rJ   r  rE   s    r>   rI   zRequestWebViewRequest._bytes  s   xxKKD$6$6$>$BTBTX]B]qceosozoz  pC  GK  GR  GR  V[  G[jk  ac  d  mq  my  my  mA  EI  EQ  EQ  UZ  EZ  hi  `c  d  mq  m|  m|  mD  HL  HW  HW  [`  H`  hi  fi  j  sw  s{  s{  sC  GK  GO  GO  SX  GX  no  ^_  `  im  iy  iy  iA  EI  EU  EU  Y^  E^  de  de  f  os  o@  o@  oH  LP  L]  L]  af  Lf  jk  lm  n  w{  wD  wD  wL  PT  P]  P]  af  Pf  rs  lm  n  w{  wC	  wC	  wK	  O	S	  O	[	  O	[	  _	d	  O	d	  rs  j	n	  o	  p	IIHHOO88#txx5'8Ct?S?STXT\T\?]##+t/?/?5/HCtOcOcdhdtdtOu$$,0A0AU0JCQUQbQbQiQiQk  /==(DMMU,BCI]I]I_<<'4<<5+@C
  	 HL||GZGZG\
  	r@   c                 
   |j                         }t        |dz        }t        |dz        }t        |dz        }t        |dz        }|j                         }|j                         }|dz  r|j                         }	nd }	|dz  r|j                         }
nd }
|dz  r|j                         }nd }|j                         }|dz  r|j                         }nd }|d	z  r|j                         }nd } | ||||||||	|
|||
      S )NrP  r  r  r  r{   rI  r|   rz   r  r  r   )rQ   rR   r   _from_bot_menur   r  r,  rS   rD  r   r  r  r  r	  rU  s                  r>   rV   z!RequestWebViewRequest.from_reader  s9   !ebj)urz"$53;'$$&##%19'')DD19!//1LL19"002M M((*	19,,.II4<++-HH4)>bis{  IT  Z^  lx  GT  _h  rz  {  	{r@   )	NNNNNNNNNr  r`   r@   r>   r  r  }  s*   NN_ ? c bjkobp   @H  IM  @N   ^f  gk  ^l   G  HL  M   Ya  be  Yf   zB  CF  zG   \d  es  \t   EM  N`  Ea   qy  zI  qJ "]
" { {r@   r  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
SaveDefaultSendAsRequestl   _ r   c                      || _         || _        yr   r7   rF  )r=   r7   rF  s      r>   r?   z!SaveDefaultSendAsRequest.__init__       	r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   rK  rp   s      r>   rs   z SaveDefaultSendAsRequest.resolve  r  r  c                 
   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r7   rF  )rC   r7   r   rD   rF  rE   s    r>   rD   z SaveDefaultSendAsRequest.to_dict  si    ++5dii+JDII%%'PTPYPY1;DLL(1St||++-
 	
 Z^YeYe
 	
r@   c                     dj                  d| j                  j                         | j                  j                         f      S )Nr@   s   )rH   r7   rI   rF  rE   s    r>   rI   zSaveDefaultSendAsRequest._bytes  s;    xxIILL!
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  r   )rQ   rR   rS   rU  s       r>   rV   z$SaveDefaultSendAsRequest.from_reader  s+    $$&'')x00r@   N)r7   r    rF  r    r   r`   r@   r>   r  r    s5    NNY
 1 1r@   r  c                       e Zd ZdZdZddddedee   dee   d	ed
   deed      ded   dee	   ded   fdZ
d Zd Zd Zed        Zy)SaveDraftRequesti0Tr   Nr7   r    r  r  r  r  r"   r  r(   r  r   effectr  r0   c
                     || _         || _        || _        || _        || _        || _        || _        || _        |	| _        yr   	r7   r  r  r  r  r  r  r  r  )
r=   r7   r  r  r  r  r  r  r  r  s
             r>   r?   zSaveDraftRequest.__init__  sE     	$(  
,r@   c                    K   |j                  |j                  | j                         d {         | _        | j                  r!|j	                  | j                        | _        y y 7 ;wrl   r  rp   s      r>   rs   zSaveDraftRequest.resolve  r  r  c                    dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  t        | j                  t              r| j                  j                         n| j                  | j                  g n9| j                  D cg c]$  }t        |t              r|j                         n|& c}t        | j                  t              r| j                  j                         n| j                  | j                  t        | j                  t              r| j                  j                         d
S | j                  d
S c c}w )Nr  )
rB   r7   r  r  r  r  r  r  r  r  )rC   r7   r   rD   r  r  r  r  r  r  r  r  r   s     r>   rD   zSaveDraftRequest.to_dict  s   #+5dii+JDII%%'PTPYPY||// --3=dmmX3V--/\`\i\i"mm3quq~q~9lmTUW_I`!))+fg:g9-7

H-MTZZ'')SWS]S]kk?I$J]J]_g?hd1199;
 	
 os  oB  oB
 	
 :@s   =)E6c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz  | j                  | j                  du rdndz        | j
                  | j
                  du rdn| j
                  j                         | j                  j                         | j                  | j                        | j                  | j                  du rdnZdj                  dt        j                  dt        | j                              dj                  d | j                  D              f      | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdnt        j                  d| j                        | j                  | j                  du rdf	      S | j                  j                         f	      S )Nr@   s   0Try   Fr   r{   r  rP  rI  r  r  r  r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z*SaveDraftRequest._bytes.<locals>.<genexpr>)  r  r   rG   )rH   rK   rL   r  r  r  r  r  r  r  rI   r7   rJ   r  r   rE   s    r>   rI   zSaveDraftRequest._bytes"  s   xxKKDOO$;tRW?Wq]^hlhyhy  iB  FJ  FW  FW  [`  F`cd  fh  i  rv  r  r  rG  KO  KX  KX  \a  Ka  mn  gi  j  sw  s@  s@  sH  LP  LY  LY  ]b  Lb  no  hi  j  sw  s}  s}  sE  IM  IS  IS  W\  I\  no  bd  e  nr  ny  ny  nA  EI  EP  EP  TY  EY  ij  _b  c  lp  l  l  lG  KO  K^  K^  bg  Kg  gh  mp  q  r==(DMMU,BCI]I]I_II  .==(DMMU,BCReflfqfqrvx{  }A  }J  }J  yK  gL  MP  MU  MU  Ux  jn  jw  jw  Ux  Mx  Ry  Iz::%u)<C4::CTCTCV;;&$++*>CV[[QUW[WbWbEc&&.$2E2E2NC

 
 
	 VZUhUhUoUoUq

 
 
	r@   c                 .   |j                         }t        |dz        }t        |dz        }|dz  r|j                         }nd }|j                         }|j                         }|dz  rR|j                          g }t	        |j                               D ]#  }	|j                         }
|j                  |
       % nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd } | |||||||||	      S )	Nr{   r  rP  rI  r  r  r  r  )r   r   rN   r   r   r   rP   )rQ   rR   r   r  r  r	  rS   r  r  rB   r   r+  _effectr  s                 r>   rV   zSaveDraftRequest.from_reader/  s8   !519oURZ(2:,,.II$$&'')19OOI6??,- %))+  $%
 I2:))+FF3;&&(GG3;$224O"OxKVcnw  CL  TZ  cj  {J  K  	Kr@   r  )rX   rY   rZ   r[   r\   r   r   r   r   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    s    NN-_ -s -QU -kstxky -  KS  Tf  Kg -  x@  AE  FY  AZ  x[ -  iq  rB  iC -  RZ  [^  R_ -  v~  R  vS -;

  K  Kr@   r  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)SaveGifRequesti0z2r   r  r   unsavec                      || _         || _        yr   r  r  )r=   r  r  s      r>   r?   zSaveGifRequest.__init__W  r  r@   c                 L   K   |j                  | j                        | _        y wrl   r  rp   s      r>   rs   zSaveGifRequest.resolve^  r  rR  c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  )rB   r  r  )rC   r  r   rD   r  rE   s    r>   rD   zSaveGifRequest.to_dicta  s7    !'1$''8'D$''//#$''kk
 	
r@   c                     dj                  d| j                  j                         | j                  rdf      S df      S )Nr@   s   0z2r:  r;  )rH   r  rI   r  rE   s    r>   rI   zSaveGifRequest._bytesh  sF    xxGGNN![[M
  	 /<
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  r  )rQ   rR   r  _unsaves       r>   rV   zSaveGifRequest.from_readero  r  r@   Nr  r`   r@   r>   r  r  S  r  r@   r  c            	       X    e Zd ZdZdZddddddeed	      fd
Zd Zd Z	d Z
ed        Zy) SavePreparedInlineMessageRequestl   />d l   "_ Nresultr   r   r&   
peer_typesr   c                 .    || _         || _        || _        y)zc
        :returns messages.BotPreparedInlineMessage: Instance of BotPreparedInlineMessage.
        Nr  r   r  )r=   r  r   r  s       r>   r?   z)SavePreparedInlineMessageRequest.__init__z  s     $r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z(SavePreparedInlineMessageRequest.resolve  r   r   c           
         dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  g dS | j
                  D cg c]$  }t        |t              r|j                         n|& c}dS c c}w )Nr  )rB   r  r   r  )rC   r  r   rD   r   r  r   s     r>   rD   z(SavePreparedInlineMessageRequest.to_dict  s    3/9$++x/Pdkk))+VZVaVa1;DLL(1St||++-Y]YeYe $ 7"	
 	
 vz  vE  vE  >FpqZXY[cMdaiikjk>k  >F	
 	
 >Fs   )C
c                    dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  j                         | j                  | j                  du rdf      S dj                  dt        j                  dt        | j                              dj                  d	 | j                  D              f      f      S )
Nr@   s   /ry   Fr   rz   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z:SavePreparedInlineMessageRequest._bytes.<locals>.<genexpr>  s7       [@  kl  \]  \d  \d  \f  [@r   )rH   rK   rL   r  r  rI   r   r   rE   s    r>   rI   z'SavePreparedInlineMessageRequest._bytes  s   xxKKDOO$;tRW?Wq]^`KK LL!??*doo.FC
  	
 MPHHVijpjujuvz|  AE  AP  AP  }Q  kR  SV  S[  S[  [@  pt  p  p  [@  S@  VA  MB
  	r@   c                 *   |j                         }|j                         }|j                         }|dz  rR|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % nd } | |||      S )Nrz   r   r  )rQ   rR   r   _resultr   _peer_typesrB   r   s           r>   rV   z,SavePreparedInlineMessageRequest.from_reader  s    !&&('')19OOK6??,- '))+""2&'
 K'8LLr@   rl   )rX   rY   rZ   r[   r\   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  v  sf    NN%9 %O %aijn  pI  kJ  bK %Y
 M Mr@   r  c                   R    e Zd ZdZdZddddedee   fdZd	 Zd
 Z	d Z
ed        Zy)SaveRecentStickerRequesti'9r   Nr  r   r  r  c                 .    || _         || _        || _        yr   r  r  r  )r=   r  r  r  s       r>   r?   z!SaveRecentStickerRequest.__init__  s      r@   c                 L   K   |j                  | j                        | _        y wrl   r  rp   s      r>   rs   z SaveRecentStickerRequest.resolve  r  rR  c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )Nr	  )rB   r  r  r  )rC   r  r   rD   r  r  rE   s    r>   rD   z SaveRecentStickerRequest.to_dict  s>    +'1$''8'D$''//#$''kk	
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  rdf      S df      S )	Nr@   s   '9ry   Fr   rz   r:  r;  )rH   rK   rL   r  r  rI   r  rE   s    r>   rI   zSaveRecentStickerRequest._bytes  sk    xxKKDMM$9T]]e=SqYZ\GGNN![[M	
  	 /<	
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         } | |||      S )Nrz   r  r   r   rN   r=  )rQ   rR   r   r  r  r  s         r>   rV   z$SaveRecentStickerRequest.from_reader  sF    !O	""$$$&c'I>>r@   rl   rX   rY   rZ   r[   r\   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r	  r	    sO    NN!. ! !QU !4
 ? ?r@   r	  c                        e Zd ZdZdZddddeddd	ee   d
ee   dededededededed   ded   dee	d      dee   fdZ
d Zd Zd Zed        Zy)SearchRequestiz)r  Nr7   r    r  r  r)   r  r  r*  r  r+  r  r  r   from_idr  saved_reactionr+   r  c                     || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        || _
        || _        || _        || _        || _        yr  r7   r  r  r  r  r*  r  r+  r  r  r   r  r  r  r  )r=   r7   r  r  r  r  r*  r  r+  r  r  r   r  r  r  r  s                   r>   r?   zSearchRequest.__init__  so     	  "$
	*,$r@   c                   K   |j                  |j                  | j                         d {         | _        | j                  r7|j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 7 T7 wrl   )rn   ro   r7   r  r  rp   s      r>   rs   zSearchRequest.resolve  s     ((v/F/Ftyy/Q)QR	<< //f6M6Mdll6[0[\DL!&!5!5F<S<STXTfTf<g6g!hD 	 *R0[ 7hs5   *CCAC/C0AC2C3CCCc           	         i dddt        | j                  t              r| j                  j                         n| j                  d| j                  dt        | j
                  t              r| j
                  j                         n| j
                  d| j                  d| j                  d| j                  d	| j                  d
| j                  d| j                  d| j                  d| j                  dt        | j                  t              r| j                  j                         n| j                  dt        | j                  t              r| j                  j                         n| j                  d| j                   g n9| j                   D cg c]$  }t        |t              r|j                         n|& c}d| j"                  S c c}w )NrB   r  r7   r  r  r  r  r*  r  r+  r  r  r   r  r  r  r  )rC   r7   r   rD   r  r  r  r  r*  r  r+  r  r  r   r  r  r  r  r   s     r>   rD   zSearchRequest.to_dict  s   

:dii+JDII%%'PTPYPY
 
 z$++x/Pdkk))+VZVaVa	

 
 
 
 $//
 TZZ
 dkk
 dkk
 DII
 DLL(1St||++-Y]YeYe
 ZHZHZ\d=eT//779kok}k}
 D$7$7$?b  ~B  ~Q  ~Q  FRxyU_`ackUlaiikrsFs  FR
  $//!
 	
 FRs   )Gc                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z        | j                  j                         | j                  | j                        | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdn| j                  j                         | j
                  | j
                  du rdnZdj                  d
t        j                  dt        | j
                              dj                  d | j
                  D              f      | j                  | j                  du rdnt        j                  d| j                        | j                  j                         | j                  | j                        | j                  | j                        t        j                  d| j                         t        j                  d| j"                        t        j                  d| j$                        t        j                  d| j&                        t        j                  d| j(                        t        j                  d| j*                        f      S )Nr@   s   z)ry   Fr   rz   r|   rI  r{   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z'SearchRequest._bytes.<locals>.<genexpr>  s7       gP  wx  hi  hp  hp  hr  gPr   rG   )rH   rK   rL   r  r  r  r  r7   rI   rJ   r  r   r  r  r  r  r*  r  r+  r  r  r   rE   s    r>   rI   zSearchRequest._bytes  s   xxKKDLL$8DLLE<QqWXbfbtbtb|  AE  AS  AS  W\  A\]^  bc  d  mq  m@  m@  mH  LP  L_  L_  ch  Lh  hi  no  p  y}  yH  yH  yP  TX  Tc  Tc  gl  Tl  tu  rs  t  uII  (<<'4<<5+@Ct||GZGZG\%%-1C1Cu1LCSWSeSeSlSlSn&&.$2E2E2NCTWT\T\^qrxr}r}  C  EH  IM  I\  I\  E]  s^  _b  _g  _g  gP  |@  |O  |O  gP  _P  ^Q  UR??*doo.FCV[[Y]_c_n_nMoKK ##DMM2##DMM2KKdnn-KKdoo.KKdjj)KKdkk*KKdkk*KKdii(#
  	r@   c                    |j                         }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  rR|j                          g }t        |j                               D ]#  }|j                         }	|j	                  |	       % nd }|dz  r|j                         }
nd }
|j                         }|j                         }|j                         }|j                         }|j                         }|j                         }|j                         }|j                         }|j                         } | |||||||||||||||
      S )Nrz   r|   rI  r{   r  )r   rN   r   r   r   r  rP   )rQ   rR   r   rS   r  _from_idr  _saved_reactionrB   r   r  r  r  r  r6  r  r7  r  r  r   s                       r>   rV   zSearchRequest.from_reader  s   !$$&!!#19++-HH19#113N!N19OO O6??,- +))+&&r*+
 #O19 //+KK&&(&&(	&&(	__&
oo'"//#//#  "GiR[gq  J  RX  ah  qx  D  NV  ft  ET  al  m  	mr@   r  )rX   rY   rZ   r[   r\   r   r   r
   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    s3   NN%_ % %>R %^fgo^p %  }E  FN  }O %  \_ %  mp %  y| %  FI %  SV %  ^a %  lt  uD  lE %  [c  ds  [t %  KS  TX  Yg  Th  Ki %  |D  EH  |I %(i
(* #m #mr@   r  c                   @    e Zd ZdZdZdedefdZd Zd Z	e
d        Zy	)
SearchCustomEmojiRequesti,l   jy r4  r   c                      || _         || _        y)zY
        :returns EmojiList: Instance of either EmojiListNotModified, EmojiList.
        Nr6  r7  s      r>   r?   z!SearchCustomEmojiRequest.__init__E  r8  r@   c                 6    d| j                   | j                  dS )Nr   r:  r6  rE   s    r>   rD   z SearchCustomEmojiRequest.to_dictL  s    +II
 	
r@   c                     dj                  d| j                  | j                        t        j                  d| j
                        f      S )Nr@   s   ,rG   r<  rE   s    r>   rI   zSearchCustomEmojiRequest._bytesS  s?    xx  /KKdii(
  	r@   c                 V    |j                         }|j                         } | ||      S r>  r?  r@  s       r>   rV   z$SearchCustomEmojiRequest.from_readerZ  rB  r@   Nr+  r`   r@   r>   r   r   A  rC  r@   r   c                   L    e Zd ZdZdZddededee   fdZ	d Z
d	 Zed
        Zy)SearchEmojiStickerSetsRequestl   LIh% aNr  r   exclude_featuredc                 .    || _         || _        || _        yzw
        :returns messages.FoundStickerSets: Instance of either FoundStickerSetsNotModified, FoundStickerSets.
        Nr  r   r(  r=   r  r   r(  s       r>   r?   z&SearchEmojiStickerSetsRequest.__init__e       	 0r@   c                 L    d| j                   | j                  | j                  dS )Nr&  rB   r  r   r(  r+  rE   s    r>   rD   z%SearchEmojiStickerSetsRequest.to_dictm  s&    0II $ 5 5	
 	
r@   c           	          dj                  dt        j                  d| j                  | j                  du rdnd      | j	                  | j
                        t        j                  d| j                        f      S )Nr@   s   LIry   Fr   rz   rG   rH   rK   rL   r(  rJ   r  r   rE   s    r>   rI   z$SearchEmojiStickerSetsRequest._bytesu  si    xxKKD$9$9$ATEZEZ^cEcqijl  (KKdii(	
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         } | |||      S Nrz   r+  r   r   r   rP   rQ   rR   r   _exclude_featuredr  r   s         r>   rV   z)SearchEmojiStickerSetsRequest.from_reader}  H    ! O!!#  "Re6GHHr@   rl   rX   rY   rZ   r[   r\   r   r^   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r&  r&  a  J    NN1# 1S 1HTN 1
 I Ir@   r&  c                       e Zd ZdZdZddedddee   dee   d	ed
ddededee	   dee	   dee	   dee   fdZ
d Zd Zd Zed        Zy)SearchGlobalRequestiXKr  Nr  r  r)   r  r  offset_rater  r    r*  r+  broadcasts_onlygroups_only
users_onlyr  c                     || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        || _
        || _        y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?  r  s                r>   r?   zSearchGlobalRequest.__init__  s\       &&"
.&$"r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r  rp   s      r>   rs   zSearchGlobalRequest.resolve  r  r   c                    d| j                   t        | j                  t              r| j                  j	                         n| j                  | j
                  | j                  | j                  t        | j                  t              r| j                  j	                         n| j                  | j                  | j                  | j                  | j                  | j                  | j                  dS )Nr;  )rB   r  r  r  r  r<  r  r*  r+  r=  r>  r?  r  )r  rC   r  r   rD   r  r  r<  r  r*  r+  r=  r>  r?  r  rE   s    r>   rD   zSearchGlobalRequest.to_dict  s    &/9$++x/Pdkk))+VZVaVa++9CDDTDTV^9_4++335eieueuZZ#33++//
 	
r@   c                 r   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z        | j                  | j                  du rdnt        j                  d
| j                        | j                  | j                        | j                  j                         | j                  | j                        | j                  | j                        t        j                  d
| j                        | j                  j                         t        j                  d
| j                         t        j                  d
| j"                        f      S )Nr@   s   XKry   Fr   r{   r|   rI  rz   r}   )rH   rK   rL   r=  r>  r?  r  rJ   r  r  rI   r  r  r  r<  r  r*  r+  rE   s    r>   rI   zSearchGlobalRequest._bytes  s   xxKKD$8$8$@DDXDX\aDaqghrv  sC  sC  sK  OS  O_  O_  ch  Ohmn  no  p  y}  yH  yH  yP  TX  Tc  Tc  gl  Tl  tu  rs  t  }A  }K  }K  }S  W[  We  We  in  Wn  xy  tu  v  w>>)T^^u-DC6;;W[]a]k]kKl  (KK ##DMM2##DMM2KKd../##%KKdnn-KKdjj)
  	r@   c                    |j                         }t        |dz        }t        |dz        }t        |dz        }|dz  r|j                         }nd }|j                         }|j                         }|j	                         }	|j	                         }
|j                         }|j                         }|j                         }|j                         } | |||	|
||||||||      S )Nr{   r|   rI  rz   rA  )r   r   r   rN   r  )rQ   rR   r   _broadcasts_only_groups_only_users_onlyr  r  r  r  r  _offset_rater  r6  r7  s                  r>   rV   zSearchGlobalRequest.from_reader  s   !	?EAI519o19*JJ!!#&&(&&(	&&(	(++-__&
"R)i]i  xD  PZ  bh  zJ  Xd  q|  HR  S  	Sr@   r  )rX   rY   rZ   r[   r\   r   r   r
   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r;  r;    s    NN## #'; #xPXGY #emnvew #  GJ #  Yh #  ux #  AD #  W_  `d  We #  yA  BF  yG #  Zb  cg  Zh #  zB  CF  zG #"a
" S Sr@   r;  c                   D    e Zd ZdZdZdedddefdZd Zd	 Z	e
d
        Zy)SearchSentMediaRequesti1~r  r  r  r)   r+  c                 .    || _         || _        || _        yr  r  r  r+  )r=   r  r  r+  s       r>   r?   zSearchSentMediaRequest.__init__  s     
r@   c                     d| j                   t        | j                  t              r| j                  j	                         n| j                  | j
                  dS )NrK  )rB   r  r  r+  )r  rC   r  r   rD   r+  rE   s    r>   rD   zSearchSentMediaRequest.to_dict  sC    )/9$++x/Pdkk))+VZVaVaZZ	
 	
r@   c           	          dj                  d| j                  | j                        | j                  j	                         t        j                  d| j                        f      S )Nr@   s   1~r}   )rH   rJ   r  r  rI   rK   rL   r+  rE   s    r>   rI   zSearchSentMediaRequest._bytes  sO    xx  (KK KKdjj)	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )NrM  )r   rN   r   )rQ   rR   r  r  r7  s        r>   rV   z"SearchSentMediaRequest.from_reader  s9    !!#&&("Rv66r@   Nr+  r`   r@   r>   rK  rK    sE    NN# '; C 
 7 7r@   rK  c                   L    e Zd ZdZdZddededee   fdZ	d Z
d	 Zed
        Zy)SearchStickerSetsRequesti[p5r'  Nr  r   r(  c                 .    || _         || _        || _        yr*  r+  r,  s       r>   r?   z!SearchStickerSetsRequest.__init__  r-  r@   c                 L    d| j                   | j                  | j                  dS )NrR  r/  r+  rE   s    r>   rD   z SearchStickerSetsRequest.to_dict  s&    +II $ 5 5	
 	
r@   c           	          dj                  dt        j                  d| j                  | j                  du rdnd      | j	                  | j
                        t        j                  d| j                        f      S )Nr@   s   [p5ry   Fr   rz   rG   r1  rE   s    r>   rI   zSearchStickerSetsRequest._bytes  si    xxKKD$9$9$ATEZEZ^cEcqijl  (KKdii(	
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         } | |||      S r3  r4  r5  s         r>   rV   z$SearchStickerSetsRequest.from_reader  r7  r@   rl   r8  r`   r@   r>   rR  rR    r9  r@   rR  c                   b    e Zd ZdZdZddededee   deded	ed
ee	   fdZ
d Zd Zed        Zy)SearchStickersRequestijƱ)iQ!@Nr  r4  r  r  r+  r   r-  c                 f    || _         || _        || _        || _        || _        || _        || _        y)zn
        :returns messages.FoundStickers: Instance of either FoundStickersNotModified, FoundStickers.
        Nr  r4  r  r  r+  r   r-  )r=   r  r4  r  r  r+  r   r-  s           r>   r?   zSearchStickersRequest.__init__#  s5      "
	r@   c           	          d| j                   | j                  | j                  g n| j                  d d  | j                  | j                  | j
                  | j                  dS )NrX  )rB   r  r4  r  r  r+  r   r-  rZ  rE   s    r>   rD   zSearchStickersRequest.to_dict/  sP    (#~~54>>!;LkkZZIIkk	
 		
r@   c                 D    dj                  dt        j                  d j                   j                  du rdnd       j	                   j
                         j	                   j                        dt        j                  dt         j                              dj                   fd	 j                  D              t        j                  d j                        t        j                  d j                        t        j                  d
 j                        f
      S )Nr@   s   jƱ)ry   Fr   rz   r   r}   c              3   @   K   | ]  }j                  |        y wrl   r5  r6  s     r>   r   z/SearchStickersRequest._bytes.<locals>.<genexpr>A  s'       PAlmPTPdPdefPg  PAr7  rG   )rH   rK   rL   r-  rJ   r  r4  r   r  r  r+  r   rE   s   `r>   rI   zSearchStickersRequest._bytes;  s    xxKKDKK$74;;%;OqUVX  (  /D#dnn2E Fsxx  PAquqq  PA  HAKKdkk*KKdjj)KKdii(	
 	 		r@   c           	         |j                         }t        |dz        }|j                         }|j                         }|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       % |j                         }	|j                         }
|j                         } | ||||	|
||      S )Nrz   rZ  )r   r   r   r   r   rP   )rQ   rR   r   r5  r  rA  r  rB   r   r  r7  r   s               r>   rV   z!SearchStickersRequest.from_readerG  s    !uqy/!!#((*	
v() 	"A%%'Bb!	" //#"  "R)z'Y_fkt{||r@   rl   )rX   rY   rZ   r[   r\   r   r   r^   r   r   r?   rD   rI   r_   rV   r`   r@   r>   rX  rX    so    NN
# 
 
c 
C 
X[ 
cf 
pxy}p~ 



 } }r@   rX  c            	       T    e Zd ZdZdZdddededed   fdZd	 Zd
 Z	d Z
ed        Zy)SendBotRequestedPeerRequestl   `Pe# r   r7   r    re   rf   requested_peersc                 <    || _         || _        || _        || _        yr   r7   re   rf   ra  )r=   r7   re   rf   ra  s        r>   r?   z$SendBotRequestedPeerRequest.__init__^  s!     	".r@   c                 $  K   |j                  |j                  | j                         d {         | _        g }| j                  D ]9  }|j	                  |j                  |j                  |       d {                ; || _        y 7 _7 wrl   )rn   ro   r7   ra  r   r7  s        r>   rs   z#SendBotRequestedPeerRequest.resolveg  s     ((v/F/Ftyy/Q)QR	&& 	QBKK,,63J3J23N-NOP	Q  $ *R .Os"   *BBAB5B6BBc                 P   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  g dS | j                  D cg c]$  }t        |t              r|j                         n|& c}dS c c}w )Nr`  )rB   r7   re   rf   ra  )rC   r7   r   rD   re   rf   ra  r   s     r>   rD   z#SendBotRequestedPeerRequest.to_dicto  s    .+5dii+JDII%%'PTPYPYkk%)%9%9%Ar
 	

 @D  @T  @T  HUz{WabcemWn		tuHu  HU
 	

 HUs   5)B#c                 h   dj                  d| j                  j                         t        j                  d| j
                        t        j                  d| j                        dt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   `вr}   r   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z5SendBotRequestedPeerRequest._bytes.<locals>.<genexpr>~  s     UefVWV^V^V`Ur   )	rH   r7   rI   rK   rL   re   rf   r   ra  rE   s    r>   rI   z"SendBotRequestedPeerRequest._bytesx  s    xxIIKKdkk*KKdnn-D#d6J6J2K LSXXUjnj~j~UM
  	r@   c                    |j                         }|j                         }|j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||||      S )Nrc  r   )rQ   rR   rS   r   r   _requested_peersrB   r   s           r>   rV   z'SendBotRequestedPeerRequest.from_reader  s    $$&//#__&
v() 	(A%%'B##B'	( gUeffr@   Nr   r`   r@   r>   r`  r`  Z  sY    NN/_ /c /c /\`ap\q /$
 
g 
gr@   r`  c            	       P    e Zd ZdZdZddddedee   defd	Z	d
 Z
d Zed        Zy)SendEncryptedRequestizD   P>< Nr7   r   rr  r  r  c                     || _         || _        || _        ||| _        yt        j	                  t        j                  d      dd      | _        yzu
        :returns messages.SentEncryptedMessage: Instance of either SentEncryptedMessage, SentEncryptedFile.
        NrI  r!  Tr"  )r7   rr  r  r^   r$  r%  r&  r  )r=   r7   rr  r  r  s        r>   r?   zSendEncryptedRequest.__init__  sI     		&/&;PRPZPZ[\P]_dmqArr@   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  dS )Nrk  )rB   r7   rr  r  r  )rC   r7   r   rD   rr  r  r  rE   s    r>   rD   zSendEncryptedRequest.to_dict  sJ    '+5dii+JDII%%'PTPYPYIIkk
 	
r@   c           	      ,   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         t        j                  d| j                        | j                  | j                        f      S )Nr@   s   zDry   Fr   rz   rG   )	rH   rK   rL   r  r7   rI   r  rJ   rr  rE   s    r>   rI   zSendEncryptedRequest._bytes  st    xxKKDKK$74;;%;OqUVXIIKKdnn-  +
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         }|j	                         } | ||||      S )Nrz   )r7   rr  r  r  r   r   rN   rP   rO   )rQ   rR   r   r   rS   r-  r{  s          r>   rV   z SendEncryptedRequest.from_reader  sV    !uqy/$$&%%'
##%E'ZPPr@   r8  rX   rY   rZ   r[   r\   r]   r   r   r^   r?   rD   rI   r_   rV   r`   r@   r>   rk  rk    sY    NNs5 sU sHUYN slo s
 Q Qr@   rk  c                   T    e Zd ZdZdZddddeddd	ee   d
ef
dZ	d Z
d Zed        Zy)SendEncryptedFileRequestiHYUrl  Nr7   r   rr  r  r   r  r  c                     || _         || _        || _        || _        ||| _        yt        j                  t        j                  d      dd      | _        yrn  )	r7   rr  r  r  r^   r$  r%  r&  r  )r=   r7   rr  r  r  r  s         r>   r?   z!SendEncryptedFileRequest.__init__  sP     			&/&;PRPZPZ[\P]_dmqArr@   c                 H   dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         n| j
                  | j                  | j                  dS )Nru  )rB   r7   rr  r  r  r  )rC   r7   r   rD   rr  r  r  r  rE   s    r>   rD   z SendEncryptedFileRequest.to_dict  sp    ++5dii+JDII%%'PTPYPYII+5dii+JDII%%'PTPYPYkk
 	
r@   c           	      ^   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         t        j                  d| j                        | j                  | j                        | j                  j                         f      S )Nr@   s   HYUry   Fr   rz   rG   )
rH   rK   rL   r  r7   rI   r  rJ   rr  r  rE   s    r>   rI   zSendEncryptedFileRequest._bytes  s    xxKKDKK$74;;%;OqUVXIIKKdnn-  +II
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         }|j	                         }|j                         } | |||||      S )Nrz   )r7   rr  r  r  r  rr  )rQ   rR   r   r   rS   r-  r{  r  s           r>   rV   z$SendEncryptedFileRequest.from_reader  sg    !uqy/$$&%%'
##%$$&EgQ[\\r@   r8  rs  r`   r@   r>   ru  ru    sh    NNs5 sU sJb sltuylz s  MP s
 ] ]r@   ru  c                   F    e Zd ZdZdZddddedefdZd	 Zd
 Z	e
d        Zy)SendEncryptedServiceRequesti92rl  Nr7   r   rr  r  c                     || _         || _        ||| _        yt        j                  t	        j
                  d      dd      | _        yrn  )r7   rr  r^   r$  r%  r&  r  )r=   r7   rr  r  s       r>   r?   z$SendEncryptedServiceRequest.__init__  sB     		&/&;PRPZPZ[\P]_dmqArr@   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )Nr{  )rB   r7   rr  r  )rC   r7   r   rD   rr  r  rE   s    r>   rD   z#SendEncryptedServiceRequest.to_dict  sC    .+5dii+JDII%%'PTPYPYII	
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        | j                  | j                        f      S )Nr@   s   92rG   )rH   r7   rI   rK   rL   r  rJ   rr  rE   s    r>   rI   z"SendEncryptedServiceRequest._bytes  sO    xxIIKKdnn-  +	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )N)r7   rr  r  )rN   rP   rO   )rQ   rR   rS   r-  r{  s        r>   rV   z'SendEncryptedServiceRequest.from_reader  s;    $$&%%'
##%EZ@@r@   rl   rW   r`   r@   r>   r{  r{    sK    NNs5 sU ss s
 A Ar@   r{  c                       e Zd ZdZdZddddededee   d	ee   d
ee   dee   ded   dedee	   ded   ded   dee   fdZ
d Zd Zd Zed        Zy)SendInlineBotResultRequestl   Fv r   Nr7   r    r  r  r  r  clear_drafthide_viar  r"   r  r  rF  r  r!   r  c                    || _         || _        || _        || _        || _        || _        || _        || _        |	|	n*t        j                  t        j                  d      dd      | _        |
| _        || _        || _        || _        yrH  )r7   r  r  r  r  r  r  r  r^   r$  r%  r&  r  r  rF  r  r  )r=   r7   r  r  r  r  r  r  r  r  r  rF  r  r  s                 r>   r?   z#SendInlineBotResultRequest.__init__  s     	 $&  &/&;PRPZPZ[\P]_dmqAr*$8! 0r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   rK  rp   s      r>   rs   z"SendInlineBotResultRequest.resolve!  rL  rM  c                    dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  | j                  | j                  t        | j                  t              r| j                  j                         n| j                  | j                  | j                  t        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr  )rB   r7   r  r  r  r  r  r  r  r  r  rF  r  r  )rC   r7   r   rD   r  r  r  r  r  r  r  r  r  rF  r  r  rE   s    r>   rD   z"SendInlineBotResultRequest.to_dict&  s    -+5dii+JDII%%'PTPYPY''kk//++3=dmmX3V--/\`\i\i!//1;DLL(1St||++-Y]YeYeKUVZVoVoqyKzD$=$=$E$E$G  AE  AZ  AZ $ 5 5
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz        | j                  j                         | j                  | j                  du rdn| j                  j                         t        j                  d| j                        t        j                  d| j                        | j!                  | j"                        | j                  | j                  du rdn| j%                  | j                        | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdf      S t        j                  d| j                        f      S )Nr@   s   Fvry   Fr   r  r  r  r  rz   r  r  r  r  rG   )rH   rK   rL   r  r  r  r  r  r  rF  r  r  r7   rI   r  r  rJ   r  r  rE   s    r>   rI   z!SendInlineBotResultRequest._bytes8  s   xxKKDKK$74;;%;OqUWaeapapax  }A  }L  }L  PU  }U\]  []  ^  gk  gw  gw  g  CG  CS  CS  W\  C\  bc  be  f  os  o|  o|  oD  HL  HU  HU  Y^  H^  jk  dh  i  rv  r  r  rG  KO  KX  KX  \a  Ka  mn  gh  i  rv  rD  rD  rL  PT  Pb  Pb  fk  Pk  mn  qu  v  C  K  K  S  W[  Wc  Wc  gl  Wl  z{  rv  w  @D  @Y  @Y  @a  ei  e~  e~  B	G	  eG	  {|  M	S	  T	  ]	a	  ]	r	  ]	r	  ]	z	  ~	B
  ~	S
  ~	S
  W
\
  ~	\
  X	Y	  b
i
  j
  k
II==(DMMU,BCI]I]I_KKdnn-KKdmm,  )%%-1C1Cu1LCSWSjSjkok}k}S~<<'4<<5+@Ct||GZGZG\,,48Q8QUZ8ZCaeazaz  bB  bB  bD((0D4I4IU4RC
  	 Z`YdYdeiko  lA  lA  ZB
  	r@   c                 ,   |j                         }t        |dz        }t        |dz        }t        |dz        }t        |dz        }|j                         }|dz  r|j                         }nd }|j                         }	|j                         }
|j	                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|d	z  r|j                         }nd } | ||
|||||||	||||
      S )Nr  r  r  r  rz   r  r  r  r  )r7   r  r  r  r  r  r  r  r  r  rF  r  r  )r   r   rN   rP   r   r  )rQ   rR   r   r   r  _clear_draft	_hide_viarS   r	  r-  r  r  r  rU  r
  r  s                   r>   rV   z&SendInlineBotResultRequest.from_readerG  sR   !urz"52:&ECK(&	$$&19,,.II%%'
$$&	""$4<#//1N!N4<++-HH6>$*$8$8$:!$(!7? & 0 0 2 $	c'Vao{  GP  [d  pz  JX  bj  AV  iz  {  	{r@   )
NNNNNNNNNN)rX   rY   rZ   r[   r\   r^   r   r   r   r
   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r    s(   NN1_ 1 1 1hW[n 1owx|o} 1  RZ  [_  R` 1  qy  z~  q 1  PX  Yk  Pl 1  ~A 1  W_  `h  Wi 1  yA  BQ  yR 1  ow  xU  oV 1  ow  x{  o| 1$]

$ { {r@   r  c            *           e Zd ZdZdZd$ddddded	ee   d
ee   dee   dee   dee   dee   dee   ded   deded   dee	d      dee
   ded   ded   dee   dee   ded   f(dZd  Zd! Zd" Zed#        Zy)%SendMediaRequestl   YX r   Nr7   r    r  r   r  r  r  r  r  update_stickersets_orderr  r  r  r"   r  r  r,   r  r(   r  rF  r  r!   r  r  r  r0   c                 v   || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        || _
        ||n*t        j                  t        j                  d      dd      | _        || _        || _        || _        || _        || _        || _        || _        || _        yrH  )r7   r  r  r  r  r  r  r  r  r  r  r^   r$  r%  r&  r  r  r  r  rF  r  r  r  r  )r=   r7   r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  s                        r>   r?   zSendMediaRequest.__init__n  s     	
$&$(@%($8! &/&;PRPZPZ[\P]_dmqAr( *$8! 0,r@   c                 J  K   |j                  |j                  | j                         d {         | _        |j                  | j                        | _        | j
                  r8|j                  |j                  | j
                         d {         | _        y y 7 r7 wrl   )rn   ro   r7   r  r  rF  rp   s      r>   rs   zSendMediaRequest.resolve  s}     ((v/F/Ftyy/Q)QR	**4::6
<< //f6M6Mdll6[0[\DL  *R 1\s"   *B#BA"B#B!B#!B#c           	      j   i dddt        | j                  t              r| j                  j                         n| j                  dt        | j                  t              r| j                  j                         n| j                  d| j
                  d| j                  d| j                  d| j                  d	| j                  d
| j                  d| j                  d| j                  dt        | j                  t              r| j                  j                         n| j                  d| j                  dt        | j                  t              r| j                  j                         n| j                  d| j                   g n9| j                   D cg c]$  }t        |t              r|j                         n|& c}d| j"                  dt        | j$                  t              r| j$                  j                         n| j$                  t        | j&                  t              r| j&                  j                         n| j&                  | j(                  | j*                  t        | j,                  t              r| j,                  j                         dS | j,                  dS c c}w )NrB   r  r7   r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  )rC   r7   r   rD   r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  r   s     r>   rD   zSendMediaRequest.to_dict  s   
#
:dii+JDII%%'PTPYPY
 Z

H-MTZZ'')SWS]S]
 t||	

 dkk
 $//
 4++
 $//
 '(E(E
 D--
 #D$=$=
 :dmmX3V--/\`\i\i
 
 :dFWFWYa;bD--557hlhyhy
 dmm3quq~q~9lmTUW_I`!))+fg:g9
  T//!
" DLL(1St||++-Y]YeYe#
$ LVVZVoVoqyKzD$=$=$E$E$G  AE  AZ  AZkk $ 5 5?I$J]J]_g?hd1199;+
 	
* os  oB  oB+
 	
 :@s   )J0c                 `	   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                   | j                   du rdndz  | j"                  | j"                  du rdndz  | j$                  | j$                  du rdndz        | j&                  j)                         | j                  | j                  du rdn| j                  j)                         | j*                  j)                         | j-                  | j.                        t        j                  d| j0                        | j                  | j                  du rdn| j                  j)                         | j                  | j                  du rdnZdj                  dt        j                  dt3        | j                              dj                  d | j                  D              f      | j                  | j                  du rdn| j5                  | j                        | j                  | j                  du rdn| j                  j)                         | j                  | j                  du rdn| j                  j)                         | j                   | j                   du rdnt        j                  d| j                         | j"                  | j"                  du rdnt        j                  d| j"                        | j$                  | j$                  du rdf      S | j$                  j)                         f      S )Nr@   s   Ury   Fr   r  r  r  r  r  r  r  rz   r|   rI  r  r  r     r  r  rG   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z*SendMediaRequest._bytes.<locals>.<genexpr>  r  r   )rH   rK   rL   r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  r7   rI   r  rJ   r  r  r   r  rE   s    r>   rI   zSendMediaRequest._bytes  s}   xxKKDKK$74;;%;OqUWaeapapax  }A  }L  }L  PU  }U\]  []  ^  gk  gw  gw  g  CG  CS  CS  W\  C\  bc  be  f  os  o~  o~  oF  JN  JY  JY  ]b  Jb  jk  hm  n  w{  wT  wT  w\  `d  `}  `}  AF  `F  rs  LQ  R  [_  [l  [l  [t  x|  xI  xI  MR  xR  VW  X]  ^  gk  g@  g@  gH  LP  Le  Le  in  Ln  bc  tz  {  D	H	  D	Q	  D	Q	  D	Y	  ]	a	  ]	j	  ]	j	  n	s	  ]	s	  @	  y	z	  {	  D
H
  D
U
  D
U
  D
]
  a
e
  a
r
  a
r
  v
{
  a
{
  	@
  AB  C  LP  LY  LY  La  ei  er  er  v{  e{  GH  AB  C  LP  L^  L^  Lf  jn  j|  j|  @E  jE  GH  KO  P  Y]  Ye  Ye  Ym  qu  q}  q}  AF  qF  TU  LP  Q  Z^  Zs  Zs  Z{  C  X  X  \a  a  UV  gm  n  w{  wB  wB  wJ  NR  NY  NY  ]b  Nb  rs  hn  o  x|  xM  xM  xU  Y]  Yn  Yn  rw  Yw  st  }D  E  NR  Na  Na  Ni  mq  m@  m@  DI  mI  IJ  OV  W  XII==(DMMU,BCI]I]I_JJ  .KKdnn-$$,0A0AU0JCQUQbQbQiQiQk==(DMMU,BCReflfqfqrvx{  }A  }J  }J  yK  gL  MP  MU  MU  Ux  jn  jw  jw  Ux  Mx  Ry  Iz%%-1C1Cu1LCSWSjSjkok}k}S~<<'4<<5+@Ct||GZGZG\,,48Q8QUZ8ZCaeazaz  bB  bB  bD;;&$++*>CV[[QUW[WbWbEc((0D4I4IU4RCY_YdYdeiko  lA  lA  ZB&&.$2E2E2NC
  	 VZUhUhUoUoUq
  	r@   c                    |j                         }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }	|j                         }
|dz  r|j                         }nd }|j                         }|j                         }|j	                         }|d	z  r|j                         }nd }|d
z  rR|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j	                         }nd }|dz  r|j	                         }nd }|dz  r|j                         }nd } | d%i d|
d|d|d|d|d|d|d|d|d|	d|d|d|d|d|d |d!|d"|d#|d$|S )&Nr  r  r  r  r  r  r  rz   r|   rI  r  r  r  r  r  r  r7   r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  r`   r   r   rN   r   rP   r   r   r  )rQ   rR   r   r   r  r  r  _update_stickersets_orderr  r  rS   r	  r+  r  r-  r  r  rB   r   r  rU  r
  r  r  r  s                            r>   rV   zSendMediaRequest.from_reader  s   !urz"52:&ECK(55=)$($7!UU]+ $UV^ 4$$&19,,.II%%''')%%'
19"002M M19OOI6??,- %))+  $%
 I4<#//1N!N4<++-HH6>$*$8$8$:!$(!6>&&(GG7? & 0 0 2 $7?$224O"O  _  _V  _X  _g  _Ze  _s  _  MX  _  sL  _  [h  _  T  _  _h  _  t~  _  MZ  _  en  _  ~L  _  V^  _  uJ  _  SZ  _  m~  _  O^  _  	_r@   )NNNNNNNNNNNNNNNNNrX   rY   rZ   r[   r\   r   r   r   r^   r   r
   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  j  s   NN-_ -5E -PS -]efj]k -  G  HL  M -  ai  jn  ao -  BJ  KO  BP -  qy  z~  q -  T\  ]a  Tb -  G  HL  M -  ^f  gy  ^z -  LO -  dl  m~  d -  PX  Y]  ^q  Yr  Ps -  IQ  RZ  I[ -  ks  tC	  kD	 -  a	i	  j	G
  a	H
 -  W
_
  `
c
  W
d
 -  }
E  FI  }
J -  ai  j}  a~ -2]
2& 7_ 7_r@   r  c            *           e Zd ZdZdZd#dddedee   dee   d	ee   d
ee   dee   dee   dee   dee   ded   deded   dee	d      dee
   ded   ded   dee   dee   ded   f(dZd Zd  Zd! Zed"        Zy)$SendMessageRequestl   \| r   Nr7   r    r  r  r  r  r  r  r  r  r  r  r"   r  r  r,   r  r(   r  rF  r  r!   r  r  r  r0   c                 v   || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        || _
        ||n*t        j                  t        j                  d      dd      | _        || _        || _        || _        || _        || _        || _        || _        || _        yrH  )r7   r  r  r  r  r  r  r  r  r  r  r^   r$  r%  r&  r  r  r  r  rF  r  r  r  r  )r=   r7   r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  s                        r>   r?   zSendMessageRequest.__init__  s     	$$&$(@%($8! &/&;PRPZPZ[\P]_dmqAr( *$8! 0,r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   rK  rp   s      r>   rs   zSendMessageRequest.resolve  rL  rM  c           	         i dddt        | j                  t              r| j                  j                         n| j                  d| j                  d| j
                  d| j                  d| j                  d| j                  d	| j                  d
| j                  d| j                  d| j                  dt        | j                  t              r| j                  j                         n| j                  d| j                  dt        | j                  t              r| j                  j                         n| j                  d| j                   g n9| j                   D cg c]$  }t        |t              r|j                         n|& c}d| j"                  dt        | j$                  t              r| j$                  j                         n| j$                  t        | j&                  t              r| j&                  j                         n| j&                  | j(                  | j*                  t        | j,                  t              r| j,                  j                         dS | j,                  dS c c}w )NrB   r  r7   r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  )rC   r7   r   rD   r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  r   s     r>   rD   zSendMessageRequest.to_dict  si   
%
:dii+JDII%%'PTPYPY
 t||
 $//	

 dkk
 $//
 4++
 $//
 '(E(E
 D--
 #D$=$=
 :dmmX3V--/\`\i\i
 
 :dFWFWYa;bD--557hlhyhy
 dmm3quq~q~9lmTUW_I`!))+fg:g9
  T//!
" DLL(1St||++-Y]YeYe#
$ LVVZVoVoqyKzD$=$=$E$E$G  AE  AZ  AZkk $ 5 5?I$J]J]_g?hd1199;+
 	
* os  oB  oB+
 	
 :@s   ')I<c                 l	   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                   | j                   du rdndz  | j"                  | j"                  du rdndz  | j$                  | j$                  du rdndz  | j&                  | j&                  du rdndz        | j(                  j+                         | j                  | j                  du rdn| j                  j+                         | j-                  | j.                        t        j                  d| j0                        | j                  | j                  du rdn| j                  j+                         | j                  | j                  du rdnZdj                  dt        j                  dt3        | j                              dj                  d | j                  D              f      | j                  | j                  du rdn| j5                  | j                        | j                  | j                  du rdn| j                  j+                         | j                   | j                   du rdn| j                   j+                         | j"                  | j"                  du rdnt        j                  d| j"                        | j$                  | j$                  du rdnt        j                  d| j$                        | j&                  | j&                  du rdf      S | j&                  j+                         f      S )Nr@   s   ry   Fr   r{   r  r  r  r  r  r  r  rz   r|   rI  r  r  r  r  r  r  rG   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z,SendMessageRequest._bytes.<locals>.<genexpr>8  r  r   )rH   rK   rL   r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  r7   rI   rJ   r  r  r   r  rE   s    r>   rI   zSendMessageRequest._bytes/  s   xxKKDOO$;tRW?Wq]^hlhshsh{  @D  @K  @K  OT  @Tcd  Z\  ]  fj  fu  fu  f}  AE  AP  AP  TY  AY  ab  _a  b  ko  k{  k{  kC  GK  GW  GW  [`  G`  fg  fi  j  sw  sB  sB  sJ  NR  N]  N]  af  Nf  no  lq  r  {  {X  {X  {`  dh  dA  dA  EJ  dJ  vw  PU  V  _c  _p  _p  _x  |@  |M  |M  QV  |V  Z[  \a  b  ko  kD	  kD	  kL	  P	T	  P	i	  P	i	  m	r	  P	r	  fg  x	~	  	  H
L
  H
U
  H
U
  H
]
  a
e
  a
n
  a
n
  r
w
  a
w
  C
D
  }
~
  
  HL  HY  HY  Ha  ei  ev  ev  z  e  CD  EF  G  PT  P]  P]  Pe  im  iv  iv  z  i  KL  EF  G  PT  Pb  Pb  Pj  nr  n@  n@  DI  nI  KL  OS  T  ]a  ]i  ]i  ]q  uy  uA  uA  EJ  uJ  XY  PT  U  ^b  ^w  ^w  ^  CG  C\  C\  `e  Ce  YZ  kq  r  {  {F  {F  {N  RV  R]  R]  af  Rf  vw  lr  s  |@  |Q  |Q  |Y  ]a  ]r  ]r  v{  ]{  wx  AH  I  RV  Re  Re  Rm  qu  qD  qD  HM  qM  MN  SZ  [  \II==(DMMU,BCI]I]I_  .KKdnn-$$,0A0AU0JCQUQbQbQiQiQk==(DMMU,BCReflfqfqrvx{  }A  }J  }J  yK  gL  MP  MU  MU  Ux  jn  jw  jw  Ux  Mx  Ry  Iz%%-1C1Cu1LCSWSjSjkok}k}S~<<'4<<5+@Ct||GZGZG\,,48Q8QUZ8ZCaeazaz  bB  bB  bD;;&$++*>CV[[QUW[WbWbEc((0D4I4IU4RCY_YdYdeiko  lA  lA  ZB&&.$2E2E2NC
  	 VZUhUhUoUoUq
  	r@   c                    |j                         }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }	t        |dz        }
|j                         }|d	z  r|j                         }nd }|j                         }|j	                         }|d
z  r|j                         }nd }|dz  rR|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j	                         }nd }|dz  r|j	                         }nd }|dz  r|j                         }nd } | d&i d|d|d|d|d|d|d|d|d|	d|
d|d|d|d|d |d!|d"|d#|d$|d%|S )'Nr{   r  r  r  r  r  r  r  rz   r|   rI  r  r  r  r  r  r  r7   r  r  r  r  r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r  r`   r  )rQ   rR   r   r  r   r  r  r  r  r  r  rS   r	  r  r-  r  r  rB   r   r  rU  r
  r  r  r  s                            r>   rV   zSendMessageRequest.from_readerA  s   !519ourz"52:&ECK(55=)$($7!UU]+ $UV^ 4$$&19,,.II'')%%'
19"002M M19OOI6??,- %))+  $%
 I4<#//1N!N4<++-HH6>$*$8$8$:!$(!6>&&(GG7? & 0 0 2 $7?$224O"O  i  ix  iK  iPW  ido  i  ~J  i  Wb  i  }V  i  er  i  I^  i  ir  i  ~H  i  Wd  i  ox  i  HV  i  `h  i  T  i  ]d  i  wH  i  Yh  i  	ir@   )NNNNNNNNNNNNNNNNNNr  r`   r@   r>   r  r    s   NN-_ -s -QU -emnres -  GO  PT  GU -  iq  rv  iw -  JR  SW  JX -  yA  BF  yG -  \d  ei  \j -  GO  PT  GU -  fn  oA  fB -  TW -  lt  uF  lG -  X`  ae  fy  az  X{ -  QY  Zb  Qc -  s{  |K	  sL	 -  i	q	  r	O
  i	P
 -  _
g
  h
k
  _
l
 -  EM  NQ  ER -  iq  rE  iF -2]

2$ 7i 7ir@   r  c                        e Zd ZdZdZdddded   dee   d	ee   d
ee   dee   dee   dee   dee   ded   dee   ded   ded   dee	   dee	   fdZ
d Zd Zd Zed        Zy)SendMultiMediaRequestitr   Nr7   r    multi_mediar#   r  r  r  r  r  r  r  r  r"   r  rF  r  r!   r  r  c                     || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        || _
        || _        || _        || _        || _        yr   r7   r  r  r  r  r  r  r  r  r  r  rF  r  r  r  )r=   r7   r  r  r  r  r  r  r  r  r  r  rF  r  r  r  s                   r>   r?   zSendMultiMediaRequest.__init__  su     	&$&$(@%($8! *$8! 0r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   rK  rp   s      r>   rs   zSendMultiMediaRequest.resolve  rL  rM  c           	         i dddt        | j                  t              r| j                  j                         n| j                  d| j                  g n9| j                  D cg c]$  }t        |t              r|j                         n|& c}d| j
                  d| j                  d| j                  d| j                  d	| j                  d
| j                  d| j                  dt        | j                  t              r| j                  j                         n| j                  d| j                  dt        | j                  t              r| j                  j                         n| j                  dt        | j                  t              r| j                  j                         n| j                  d| j                   d| j"                  S c c}w )NrB   r  r7   r  r  r  r  r  r  r  r  r  r  rF  r  r  r  )rC   r7   r   rD   r  r  r  r  r  r  r  r  r  r  rF  r  r  r  r   s     r>   rD   zSendMultiMediaRequest.to_dict  s   
(
:dii+JDII%%'PTPYPY
 !1!1!92w{  xH  xH  @IrszZ[]eOf		lm@m  @I
 dkk	

 $//
 4++
 $//
 '(E(E
 D--
 #D$=$=
 :dmmX3V--/\`\i\i
 T//
 DLL(1St||++-Y]YeYe
 #:VZVoVoqyKzD$=$=$E$E$G  AE  AZ  AZ
 dkk
   5 5!
 	
 @Is   #)Gc                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz  | j                  | j                  du rdndz        | j                   j#                         | j                  | j                  du rdn| j                  j#                         dt        j                  dt%        | j&                              dj                  d | j&                  D              | j                  | j                  du rdn| j)                  | j                        | j                  | j                  du rdn| j                  j#                         | j                  | j                  du rdn| j                  j#                         | j                  | j                  du rdnt        j                  d| j                        | j                  | j                  du rdf      S t        j                  d| j                        f      S )Nr@   s   try   Fr   r  r  r  r  r  r  r  rz   r  r  r  r  r  r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z/SendMultiMediaRequest._bytes.<locals>.<genexpr>       QwabRSRZRZR\Qwr   rG   )rH   rK   rL   r  r  r  r  r  r  r  r  r  rF  r  r  r  r7   rI   r   r  r  rE   s    r>   rI   zSendMultiMediaRequest._bytes  s   xxKKDKK$74;;%;OqUWaeapapax  }A  }L  }L  PU  }U\]  []  ^  gk  gw  gw  g  CG  CS  CS  W\  C\  bc  be  f  os  o~  o~  oF  JN  JY  JY  ]b  Jb  jk  hm  n  w{  wT  wT  w\  `d  `}  `}  AF  `F  rs  LQ  R  [_  [l  [l  [t  x|  xI  xI  MR  xR  VW  X]  ^  gk  g@  g@  gH  LP  Le  Le  in  Ln  bc  tz  {  D	H	  D	Q	  D	Q	  D	Y	  ]	a	  ]	j	  ]	j	  n	s	  ]	s	  @	  y	z	  {	  D
H
  D
V
  D
V
  D
^
  b
f
  b
t
  b
t
  x
}
  b
}
  	@
  CG  H  QU  Q]  Q]  Qe  im  iu  iu  y~  i~  LM  DH  I  RV  Rk  Rk  Rs  w{  wP  wP  TY  wY  MN  _e  f  os  oz  oz  oB  FJ  FQ  FQ  UZ  FZ  jk  `f  g  pt  pE  pE  pM  QU  Qf  Qf  jo  Qo  kl  u|  }  ~II==(DMMU,BCI]I]I_D#d6F6F2G HQwfjfvfvQwIw%%-1C1Cu1LCSWSjSjkok}k}S~<<'4<<5+@Ct||GZGZG\,,48Q8QUZ8ZCaeazaz  bB  bB  bD;;&$++*>CV[[QUW[WbWbEc((0D4I4IU4RC
  	 Z`YdYdeiko  lA  lA  ZB
  	r@   c                    |j                         }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }t        |dz        }	|j                         }
|dz  r|j                         }nd }|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       % |d	z  r|j                         }nd }|d
z  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd } | |
||||||||	||||||      S )Nr  r  r  r  r  r  r  rz   r  r  r  r  r  r  )r   r   rN   r   r   r  rP   )rQ   rR   r   r   r  r  r  r  r  r  rS   r	  _multi_mediarB   r   r  rU  r
  r  r  s                       r>   rV   z!SendMultiMediaRequest.from_reader  s   !urz"52:&ECK(55=)$($7!UU]+ $UV^ 4$$&19,,.IIv() 	$A%%'B#	$ 4<#//1N!N4<++-HH6>$*$8$8$:!$(!6>&&(GG7? & 0 0 2 $<T_my  GR  mF  Ub  yN  Yb  r@  JR  i~  GN  ar  s  	sr@   )NNNNNNNNNNNNN)rX   rY   rZ   r[   r\   r   r   r   r
   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  |  s   NN1_ 14@V;W 1aijnao 1  CK  LP  CQ 1  em  nr  es 1  FN  OS  FT 1  u}  ~B  uC 1  X`  ae  Xf 1  CK  LP  CQ 1  bj  k}  b~ 1  T\  ]e  Tf 1  v~  N  vO 1  lt  uR  lS 1  bj  kn  bo 1  H	P	  Q	T	  H	U	 1(]

( )s )sr@   r  c                   Z    e Zd ZdZdZddddededed	ed
   f
dZd Zd Z	d Z
ed        Zy)SendPaidReactionRequestiP˻Xr   Nr7   r    re   countr  privater*   c                     || _         || _        || _        ||n*t        j	                  t        j                  d      dd      | _        || _        yrH  )	r7   re   r  r^   r$  r%  r&  r  r  )r=   r7   re   r  r  r  s         r>   r?   z SendPaidReactionRequest.__init__  sL     	
&/&;PRPZPZ[\P]_dmqArr@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zSendPaidReactionRequest.resolve  r   r   c           	      L   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr  )rB   r7   re   r  r  r  )rC   r7   r   rD   re   r  r  r  rE   s    r>   rD   zSendPaidReactionRequest.to_dict  s~    *+5dii+JDII%%'PTPYPYkkZZ1;DLL(1St||++-
 	
 Z^YeYe
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         t        j                  d| j                        t        j                  d| j                        t        j                  d| j                        | j                  | j                  du rdf      S | j                  j                         f      S )	Nr@   s   P˻Xry   Fr   rz   r}   rG   )	rH   rK   rL   r  r7   rI   re   r  r  rE   s    r>   rI   zSendPaidReactionRequest._bytes   s    xxKKDLL$8DLLE<QqWXZIIKKdkk*KKdjj)KKdnn-<<'4<<5+@C
  	 HL||GZGZG\
  	r@   c                     |j                         }|j                         }|j                         }|j                         }|j                         }|dz  r|j                         }nd } | |||||      S )Nrz   )r7   re   r  r  r  r  )rQ   rR   r   rS   r   _countr-  _privates           r>   rV   z#SendPaidReactionRequest.from_reader   sp    !$$&//#"%%'
19++-HHgVz[cddr@   r8  r  r`   r@   r>   r  r    sj    NN_ c # RU em  oH  fI S
	 e er@   r  c            
       \    e Zd ZdZdZddddedee   dee   fd	Zd
 Zd Z	d Z
ed        Zy)SendQuickReplyMessagesRequestiulr   Nr7   r    r  r  r  c                     || _         || _        || _        ||| _	        yt        t	        |            D cg c]-  }t
        j                  t        j                  d      dd      / c}| _	        yc c}w rH  )
r7   r  r  r   r   r^   r$  r%  r&  r  )r=   r7   r  r  r  rB   s         r>   r?   z&SendQuickReplyMessagesRequest.__init__!   s     	&&/&;  ~C  DG  HJ  DK  ~L  BMxy#..QSQ[Q[\]Q^`enr.Bs  BM  BMs   2A1c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z%SendQuickReplyMessagesRequest.resolve*   r   r   c                    dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  g n| j
                  d d  | j                  g dS | j                  d d  dS )Nr  )rB   r7   r  r  r  )rC   r7   r   rD   r  r  r  rE   s    r>   rD   z%SendQuickReplyMessagesRequest.to_dict-   sx    0+5dii+JDII%%'PTPYPY++"TWWQZ#~~5
 	

 <@>>!;L
 	
r@   c                    dj                  d| j                  j                         t        j                  d| j
                        dt        j                  dt        | j                              dj                  d | j                  D              dt        j                  dt        | j                              dj                  d | j                  D              f	      S )Nr@   s   ulr}   r   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z7SendQuickReplyMessagesRequest._bytes.<locals>.<genexpr>;   r  r  c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z7SendQuickReplyMessagesRequest._bytes.<locals>.<genexpr><   r  r  )	rH   r7   rI   rK   rL   r  r   r  r  rE   s    r>   rI   z$SendQuickReplyMessagesRequest._bytes6   s    xxIIKKd../D#dgg, ?HogkgngnHo@oD#dnn2E FsxxO}nrn|n|O}G}
  	r@   c                    |j                         }|j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % |j                          g }t        |j                               D ]#  }|j	                         }|j                  |       %  | ||||      S )N)r7   r  r  r  )rN   r   r   r   rP   )rQ   rR   rS   r  r  rB   r   r-  s           r>   rV   z)SendQuickReplyMessagesRequest.from_reader?   s    $$&(v() 	A"BJJrN	 	
v() 	"A!!#Bb!	" <C:VVr@   rl   r   r`   r@   r>   r  r     sc    NNM_ M3 MDI MZ^_bZc MS
 W Wr@   r  c                   l    e Zd ZdZdZddddedee   dee   d	eed
      f
dZ	d Z
d Zd Zed        Zy)SendReactionRequestl   x& r   Nr7   r    re   r!  add_to_recentr  r+   c                 J    || _         || _        || _        || _        || _        yr   r7   re   r!  r  r  )r=   r7   re   r!  r  r  s         r>   r?   zSendReactionRequest.__init__V   s(     	* r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zSendReactionRequest.resolve`   r   r   c                 f   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  g dS | j                  D cg c]$  }t        |t              r|j                         n|& c}dS c c}w )Nr  )rB   r7   re   r!  r  r  )rC   r7   r   rD   re   r!  r  r  r   s     r>   rD   zSendReactionRequest.to_dictc   s    &+5dii+JDII%%'PTPYPYkk88!//"mm3
 	
 rvq~q~9lmTUW_I`!))+fg:g9
 	
 :@s    )B.c                 j   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz        | j                  j                         t        j                  d	| j                        | j
                  | j
                  du rdf      S dj                  d
t        j                  d	t        | j
                              dj                  d | j
                  D              f      f      S )Nr@   s   xry   Fr   r{   r|   rz   r}   r   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z-SendReactionRequest._bytes.<locals>.<genexpr>s   r  r   )
rH   rK   rL   r!  r  r  r7   rI   re   r   rE   s    r>   rI   zSendReactionRequest._bytesm   s   xxKKDHH$4E8IqqZ^ZlZlZtx|  yK  yK  OT  yTUV  Z[  \  ei  er  er  ez  ~B  ~K  ~K  OT  ~T  `a  Z[  \  ]IIKKdkk*==(DMMU,BC
  	
 ILReflfqfqrvx{  }A  }J  }J  yK  gL  MP  MU  MU  Ux  jn  jw  jw  Ux  Mx  Ry  Iz
  	r@   c                 f   |j                         }t        |dz        }t        |dz        }|j                         }|j                         }|dz  rR|j                          g }t        |j                               D ]#  }|j                         }	|j	                  |	       % nd } | |||||      S )Nr{   r|   rz   r  rC  )
rQ   rR   r   _big_add_to_recentrS   r   r  rB   r   s
             r>   rV   zSendReactionRequest.from_readerv   s    !EAIeai$$&//#19OOI6??,- %))+  $%
 Ig4~`ijjr@   r.  )rX   rY   rZ   r[   r\   r^   r   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  R   s    NN!_ !c ! !dlmqdr !  DL  MQ  R`  Ma  Db !S
 k kr@   r  c                   L    e Zd ZdZdZdddee   fdZd Zd Z	d	 Z
ed
        Zy)SendScheduledMessagesRequestl   
qz r   r7   r    r  c                      || _         || _        yr   r  r  s      r>   r?   z%SendScheduledMessagesRequest.__init__   r   r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z$SendScheduledMessagesRequest.resolve   r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  g dS | j                  d d  dS )Nr  r  r  rE   s    r>   rD   z$SendScheduledMessagesRequest.to_dict   sW    /+5dii+JDII%%'PTPYPY"
 	
 .2WWQZ
 	
r@   c                     dj                  d| j                  j                         dt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   
8r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z6SendScheduledMessagesRequest._bytes.<locals>.<genexpr>   r  r  r  rE   s    r>   rI   z#SendScheduledMessagesRequest._bytes   s[    xxIID#dgg, ?HogkgngnHo@o
  	r@   c                     |j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||      S r	  r   r
  s         r>   rV   z(SendScheduledMessagesRequest.from_reader   r  r@   Nr  r`   r@   r>   r  r     r  r@   r  c                   L    e Zd ZdZdZddddddefd	Zd
 Zd Zd Z	e
d        Zy)!SendScreenshotNotificationRequestl   XB r   Nr7   r    r  r"   r  c                     || _         || _        ||| _        yt        j                  t	        j
                  d      dd      | _        yrH  )r7   r  r^   r$  r%  r&  r  )r=   r7   r  r  s       r>   r?   z*SendScreenshotNotificationRequest.__init__   sB     	 &/&;PRPZPZ[\P]_dmqArr@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z)SendScreenshotNotificationRequest.resolve   r   r   c                    dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  dS )Nr  )rB   r7   r  r  )rC   r7   r   rD   r  r  rE   s    r>   rD   z)SendScreenshotNotificationRequest.to_dict   sb    4+5dii+JDII%%'PTPYPY3=dmmX3V--/\`\i\i	
 	
r@   c           	          dj                  d| j                  j                         | j                  j                         t	        j
                  d| j                        f      S )Nr@   s   X@rG   )rH   r7   rI   r  rK   rL   r  rE   s    r>   rI   z(SendScreenshotNotificationRequest._bytes   sM    xxIIMM  "KKdnn-	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )N)r7   r  r  rm  )rQ   rR   rS   r	  r-  s        r>   rV   z-SendScreenshotNotificationRequest.from_reader   s;    $$&((*	%%'
	ZHHr@   rl   r   r`   r@   r>   r  r     sR    NNs_ s8J sWZ sS
 I Ir@   r  c                   P    e Zd ZdZdZdddedee   fdZd Z	d	 Z
d
 Zed        Zy)SendVoteRequestiar   r7   r    re   optionsc                 .    || _         || _        || _        yr   r7   re   r  )r=   r7   re   r  s       r>   r?   zSendVoteRequest.__init__        	r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zSendVoteRequest.resolve   r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  g dS | j
                  d d  dS )Nr  )rB   r7   re   r  )rC   r7   r   rD   re   r  rE   s    r>   rD   zSendVoteRequest.to_dict   s_    "+5dii+JDII%%'PTPYPYkk!\\1r	
 	
 8<||A	
 	
r@   c                 0    dj                  d j                  j                         t        j                  d j
                        dt        j                  dt         j                              dj                   fd j                  D              f      S )Nr@   s   ar}   r   c              3   @   K   | ]  }j                  |        y wrl   r5  r6  s     r>   r   z)SendVoteRequest._bytes.<locals>.<genexpr>   s     M|jkdNbNbcdNeM|r7  )rH   r7   rI   rK   rL   re   r   r  rE   s   `r>   rI   zSendVoteRequest._bytes   so    xxIIKKdkk*D#dll2C DSXXM|oso{o{M|E|	
  	r@   c                     |j                         }|j                         }|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       %  | |||      S )Nr  )rN   r   r   rO   r   )rQ   rR   rS   r   _optionsrB   r   s          r>   rV   zSendVoteRequest.from_reader   sq    $$&//#v() 	 A$$&BOOB	  gx@@r@   N)rX   rY   rZ   r[   r\   r^   r   r]   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r     sP    NN_ c DK S
 	A 	Ar@   r  c            	       P    e Zd ZdZdZddddededefd	Zd
 Zd Z	d Z
ed        Zy)SendWebViewDataRequestl   B8 r   Nr=  r&   button_textrr  r  c                     || _         || _        || _        ||| _        yt        j	                  t        j                  d      dd      | _        yrH  )r=  r  rr  r^   r$  r%  r&  r  )r=   r=  r  rr  r  s        r>   r?   zSendWebViewDataRequest.__init__	!  sJ     &	&/&;PRPZPZ[\P]_dmqArr@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r?  rp   s      r>   rs   zSendWebViewDataRequest.resolve!  r@  r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  dS )Nr  )rB   r=  r  rr  r  )rC   r=  r   rD   r  rr  r  rE   s    r>   rD   zSendWebViewDataRequest.to_dict!  sI    ))3DHHh)G488##%TXX++II
 	
r@   c           	          dj                  d| j                  j                         t        j                  d| j
                        | j                  | j                        | j                  | j                        f      S )Nr@   s   BrG   )	rH   r=  rI   rK   rL   r  rJ   r  rr  rE   s    r>   rI   zSendWebViewDataRequest._bytes!  sa    xxHHOOKKdnn-  !1!12  +
  	r@   c                     |j                         }|j                         }|j                         }|j                         } | ||||      S )N)r=  r  rr  r  rN   rP   r   )rQ   rR   rD  r-  _button_textr{  s         r>   rV   z"SendWebViewDataRequest.from_reader'!  sK    ##%%%'
++-$$&tEZXXr@   rl   rX   rY   rZ   r[   r\   r   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r  r  !  sY    NNsO s# sS sUX sQ
 Y Yr@   r  c                   @    e Zd ZdZdZdeddfdZd Zd Ze	d	        Z
y
)SendWebViewResultMessageRequestiC
iubot_query_idr  r   c                      || _         || _        y)zN
        :returns WebViewMessageSent: Instance of WebViewMessageSent.
        Nr  r  )r=   r  r  s      r>   r?   z(SendWebViewResultMessageRequest.__init__4!  s     )r@   c                     d| j                   t        | j                  t              r| j                  j	                         dS | j                  dS )Nr  )rB   r  r  )r  rC   r  r   rD   rE   s    r>   rD   z'SendWebViewResultMessageRequest.to_dict;!  sL    2 --/9$++x/Pdkk))+
 	
 W[VaVa
 	
r@   c                     dj                  d| j                  | j                        | j                  j	                         f      S )Nr@   s   C
)rH   rJ   r  r  rI   rE   s    r>   rI   z&SendWebViewResultMessageRequest._bytesB!  s?    xx  !2!23KK 
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr  )r   rN   )rQ   rR   _bot_query_idr  s       r>   rV   z+SendWebViewResultMessageRequest.from_readerI!  s+    ,,.&&(g>>r@   Nr   r`   r@   r>   r  r  0!  s>    NNS 2L 
 ? ?r@   r  c                   `    e Zd ZdZdZddededee   dee   dee   f
d	Z	d
 Z
d Zed        Zy)SetBotCallbackAnswerRequestl   
+ r   Nr  
cache_timealertr  rg   c                 J    || _         || _        || _        || _        || _        yr   r  r  r  r  rg   )r=   r  r  r  r  rg   s         r>   r?   z$SetBotCallbackAnswerRequest.__init__T!  s'     !$
r@   c                 x    d| j                   | j                  | j                  | j                  | j                  dS )Nr  )rB   r  r  r  r  rg   r	  rE   s    r>   rD   z#SetBotCallbackAnswerRequest.to_dict^!  s2    .//ZZ||88
 	
r@   c                 X   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz        t        j                  d	| j                        | j                  | j                  du rdn| j                  | j                        | j
                  | j
                  du rdn| j                  | j
                        t        j                  d
| j                        f      S )Nr@   s   
ry   Fr   r{   rz   r|   rG   r}   )	rH   rK   rL   r  r  rg   r  rJ   r  rE   s    r>   rI   z"SetBotCallbackAnswerRequest._bytesh!  sK   xxKKDJJ$6$**:MqST^b^j^j^rvz  wC  wC  GL  wLYZ  RS  T  ]a  ]e  ]e  ]m  qu  qy  qy  }B  qB  XY  HI  J  KKKdmm,<<'4<<5+@CtG[G[\`\h\hGi88#txx5'8Ct?S?STXT\T\?]KKdoo.
  	r@   c                     |j                         }t        |dz        }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|j                         } | |||||      S )Nr{   rz   r|   r	  r   r   rP   r   )rQ   rR   r   _alertr  r  r   _cache_times           r>   rV   z'SetBotCallbackAnswerRequest.from_readerr!  s~    !eai$$&	19++-HH19'')DDoo'I+VU]cghhr@   r.  rX   rY   rZ   r[   r\   r^   r   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r  r  P!  sn    NN # htn \deh\i u}  B  vC 
 i ir@   r  c                   R    e Zd ZdZdZddedee   dee   fdZ	d Z
d	 Zed
        Zy)SetBotPrecheckoutResultsRequesti	r   Nr  successerrorc                 .    || _         || _        || _        yr   r  r	  r	  )r=   r  r	  r	  s       r>   r?   z(SetBotPrecheckoutResultsRequest.__init__!  s     !
r@   c                 L    d| j                   | j                  | j                  dS )Nr
	  )rB   r  r	  r	  r	  rE   s    r>   rD   z'SetBotPrecheckoutResultsRequest.to_dict!  s$    2||ZZ	
 	
r@   c           	      z   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        t        j                  d| j
                        | j                  | j                  du rdf      S | j                  | j                        f      S )	Nr@   s   	ry   Fr   r{   rz   rG   )rH   rK   rL   r	  r	  r  rJ   rE   s    r>   rI   z&SetBotPrecheckoutResultsRequest._bytes!  s    xxKKDLL$8DLLE<QqWXbfblblbtx|  yC  yC  GL  yL]^  RS  T  UKKdmm,::%u)<C	
  	 DHCWCWX\XbXbCc	
  	r@   c                     |j                         }t        |dz        }|j                         }|dz  r|j                         }nd } | |||      S )Nr{   rz   r	  r	  )rQ   rR   r   _successr  _errors         r>   rV   z+SetBotPrecheckoutResultsRequest.from_reader!  sR    !	?$$&	19))+FFIxvFFr@   r8  r	  r`   r@   r>   r
	  r
	  !  sO    NN x~ 8TW= 
 	G 	Gr@   r
	  c            	       X    e Zd ZdZdZddedee   deed      fdZ	d	 Z
d
 Zed        Zy)SetBotShippingResultsRequestl   rK r   Nr  r	  shipping_optionsr.   c                 .    || _         || _        || _        yr   r  r	  r	  )r=   r  r	  r	  s       r>   r?   z%SetBotShippingResultsRequest.__init__!  s     !
 0r@   c           
          d| j                   | j                  | j                  g dS | j                  D cg c]$  }t        |t              r|j                         n|& c}dS c c}w )Nr	  )rB   r  r	  r	  )r  r	  r	  rC   r   rD   r   s     r>   rD   z$SetBotShippingResultsRequest.to_dict!  s}    /ZZ&*&;&;&C	
 	
 BF  BW  BW  JX|}YcdegoYp!))+vwJw  JX	
 	
 JXs   )A$
c                 f   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        t        j                  d| j
                        | j                  | j                  du rdn| j                  | j                        | j                  | j                  du rdf      S dj                  d	t        j                  d
t        | j                              dj                  d | j                  D              f      f      S )Nr@   s   rry   Fr   rz   r{   rG   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z6SetBotShippingResultsRequest._bytes.<locals>.<genexpr>!  s7       mX  }~  no  nv  nv  nx  mXr   )rH   rK   rL   r	  r	  r  rJ   r   rE   s    r>   rI   z#SetBotShippingResultsRequest._bytes!  s   xxKKDJJ$6$**:MqST^b^s^s^{  @D  @U  @U  Y^  @^YZ  de  f  gKKdmm,::%u)<C4CWCWX\XbXbCc((0D4I4IU4RC
  	
 Y\X`X`buv|  wB  wB  CG  IL  MQ  Mb  Mb  Ic  wd  eh  em  em  mX  BF  BW  BW  mX  eX  bY  YZ
  	r@   c                 :   |j                         }|j                         }|dz  r|j                         }nd }|dz  rR|j                          g }t        |j                               D ]#  }|j	                         }|j                  |       % nd } | |||      S )Nrz   r{   r	  )r   rP   r   r   rN   r   )rQ   rR   r   r  r	  _shipping_optionsrB   r   s           r>   rV   z(SetBotShippingResultsRequest.from_reader!  s    !$$&	19))+FF19OO "6??,- -))+!((,-
 !%IVFWXXr@   r8  )rX   rY   rZ   r[   r\   r^   r   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r	  r	  !  sW    NN1 1Xc] 1S[\`au\vSw 1
 Y Yr@   r	  c            
       \    e Zd ZdZdZddddddee   d	ee   fd
Zd Z	d Z
d Zed        Zy) SetChatAvailableReactionsRequestl   % r   Nr7   r    available_reactionsr   reactions_limitpaid_enabledc                 <    || _         || _        || _        || _        yr   r7   r 	  r!	  r"	  )r=   r7   r 	  r!	  r"	  s        r>   r?   z)SetChatAvailableReactionsRequest.__init__!  s#     	#6 .(r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z(SetChatAvailableReactionsRequest.resolve!  r   r   c                 2   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  dS )Nr	  )rB   r7   r 	  r!	  r"	  )rC   r7   r   rD   r 	  r!	  r"	  rE   s    r>   rD   z(SetChatAvailableReactionsRequest.to_dict!  s    3+5dii+JDII%%'PTPYPYISTXTlTlnvIw4#;#;#C#C#E  ~B  ~V  ~V#33 --
 	
r@   c           
         dj                  dt        j                  d| j                  | j                  du rdnd| j                  dndz        | j
                  j                         | j                  j                         | j                  | j                  du rdnt        j                  d| j                        | j                  df      S | j                  rd	f      S d
f      S )Nr@   s   %Kry   Fr   rz   r{   r}   r:  r;  )rH   rK   rL   r!	  r"	  r7   rI   r 	  rE   s    r>   rI   z'SetChatAvailableReactionsRequest._bytes!  s   xxKKD$8$8$@DDXDX\aDaqghrv  sD  sD  sLmn  RS  T  UII$$++-''/43G3G53PCW]WbWbcgimi}i}W~$$,C
  	 EIDUDU=
  	 \i
  	r@   c                     |j                         }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd } | ||||      S )Nrz   r{   r$	  )r   rN   r=  )rQ   rR   r   rS   _available_reactions_reactions_limit_paid_enableds          r>   rV   z,SetChatAvailableReactionsRequest.from_reader"  s}    !$$&%33519%0#19"..0M M3GYi  yF  G  	Gr@   r8  )rX   rY   rZ   r[   r\   r   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   r	  r	  !  sn    NN)_ )CV )iqruiv )  LT  UY  LZ )S
 G Gr@   r	  c                   >    e Zd ZdZdZd	dZd Zd Zd Ze	d        Z
y)
SetChatThemeRequestir   c                      || _         || _        yr   r7   theme)r=   r7   r0	  s      r>   r?   zSetChatThemeRequest.__init__"  r+  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zSetChatThemeRequest.resolve"  r   r   c                 
   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nr-	  )rB   r7   r0	  )rC   r7   r   rD   r0	  rE   s    r>   rD   zSetChatThemeRequest.to_dict!"  si    &+5dii+JDII%%'PTPYPY-7

H-MTZZ'')
 	
 TXS]S]
 	
r@   c                     dj                  d| j                  j                         | j                  j                         f      S )Nr@   s   )rH   r7   rI   r0	  rE   s    r>   rI   zSetChatThemeRequest._bytes("  s;    xxIIJJ
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr/	  r   )rQ   rR   rS   _themes       r>   rV   zSetChatThemeRequest.from_reader/"  r1  r@   N)r7   r    r0	  r   r   r`   r@   r>   r-	  r-	  "  s5    NNS
 - -r@   r-	  c                   v    e Zd ZdZdZddddee   dee   ded	   d
ed   dee   fdZd Z	d Z
d Zed        Zy)SetChatWallPaperRequestl   J r   Nr7   r    for_bothrevert	wallpaperr'   settingsr3   r  c                 X    || _         || _        || _        || _        || _        || _        yr   r7   r8	  r9	  r:	  r;	  r  )r=   r7   r8	  r9	  r:	  r;	  r  s          r>   r?   z SetChatWallPaperRequest.__init__:"  s.     	 " r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zSetChatWallPaperRequest.resolveE"  r   r   c           	         dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  t        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr7	  )rB   r7   r8	  r9	  r:	  r;	  r  )	rC   r7   r   rD   r8	  r9	  r:	  r;	  r  rE   s    r>   rD   zSetChatWallPaperRequest.to_dictH"  s    *+5dii+JDII%%'PTPYPYkk5?PX5Y//1_c_m_m3=dmmX3V--/\`\i\i''
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z        | j                  j                         | j
                  | j
                  du rdn| j
                  j                         | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdf      S t        j                  d| j                        f      S )Nr@   s   ry   Fr   rI  rP  rz   r|   r{   r}   )
rH   rK   rL   r8	  r9	  r:	  r;	  r  r7   rI   rE   s    r>   rI   zSetChatWallPaperRequest._bytesS"  s   xxKKDMM$9T]]e=SqYZdhdododw{  |G  |G  KP  |P_`  VX  Y  bf  bp  bp  bx  |@  |J  |J  NS  |S  ]^  YZ  [  dh  dq  dq  dy  }A  }J  }J  NS  }S  _`  YZ  [  dh  dk  dk  ds  w{  w~  w~  BG  wG  _`  MN  O  PII>>)T^^u-DC4>>K`K`Kb==(DMMU,BCI]I]I_77?dgg&6C
  	 >D[[tww=W
  	r@   c                 &   |j                         }t        |dz        }t        |dz        }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|dz  r|j                         }nd } | ||||||      S )NrI  rP  rz   r|   r{   r=	  r  )	rQ   rR   r   	_for_both_revertrS   
_wallpaper	_settingsr  s	            r>   rV   z#SetChatWallPaperRequest.from_reader]"  s    !O	urz"$$&19--/JJ19,,.II19//#CC	'Zbkpsttr@   r   )rX   rY   rZ   r[   r\   r   r   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r7	  r7	  6"  s    NN	_ 	 	U]^bUc 	u}  S  vT 	  em  nE  eF 	  QY  Z]  Q^ 	S	
 u ur@   r7	  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	SetDefaultHistoryTTLRequestl   Ej= r   periodc                     || _         yr   rH	  )r=   rH	  s     r>   r?   z$SetDefaultHistoryTTLRequest.__init__w"  r  r@   c                      d| j                   dS )NrG	  )rB   rH	  rJ	  rE   s    r>   rD   z#SetDefaultHistoryTTLRequest.to_dict}"  s    .kk
 	
r@   c                 d    dj                  dt        j                  d| j                        f      S )Nr@   s   Er}   )rH   rK   rL   rH	  rE   s    r>   rI   z"SetDefaultHistoryTTLRequest._bytes"  r  r@   c                 4    |j                         } | |      S )NrJ	  r  )rQ   rR   _periods      r>   rV   z'SetDefaultHistoryTTLRequest.from_reader"  r  r@   Nrf  r`   r@   r>   rG	  rG	  s"  s6    NNs 
 # #r@   rG	  c                   8    e Zd ZdZdZddZd Zd Zed        Z	y)	SetDefaultReactionRequestiGOr   c                     || _         yr   r  )r=   r  s     r>   r?   z"SetDefaultReactionRequest.__init__"  r   r@   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )NrP	  )rB   r  )rC   r  r   rD   rE   s    r>   rD   z!SetDefaultReactionRequest.to_dict"  s?    ,3=dmmX3V--/
 	
\`\i\i
 	
r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   GO)rH   r  rI   rE   s    r>   rI   z SetDefaultReactionRequest._bytes"  s+    xxMM  "
  	r@   c                 4    |j                         } | |      S )NrR	  r   )rQ   rR   r  s      r>   rV   z%SetDefaultReactionRequest.from_reader"  r   r@   N)r  r+   rS  r`   r@   r>   rP	  rP	  "  s/    NN!
 ' 'r@   rP	  c                   @    e Zd ZdZdZdddefdZd Zd Ze	d	        Z
y
)SetEncryptedTypingRequestiQyr   r7   r   typingc                      || _         || _        yr   r7   rX	  )r=   r7   rX	  s      r>   r?   z"SetEncryptedTypingRequest.__init__"  r  r@   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )NrW	  )rB   r7   rX	  )rC   r7   r   rD   rX	  rE   s    r>   rD   z!SetEncryptedTypingRequest.to_dict"  s<    ,+5dii+JDII%%'PTPYPYkk
 	
r@   c                     dj                  d| j                  j                         | j                  rdf      S df      S )Nr@   s   Qyr:  r;  )rH   r7   rI   rX	  rE   s    r>   rI   z SetEncryptedTypingRequest._bytes"  sH    xxII![[M
  	 /<
  	r@   c                 V    |j                         }|j                         } | ||      S )NrZ	  r  )rQ   rR   rS   _typings       r>   rV   z%SetEncryptedTypingRequest.from_reader"  s+    $$&$$&g..r@   Nr  r`   r@   r>   rW	  rW	  "  s>    NN5 t 
 / /r@   rW	  c                   d    e Zd ZdZdZddddeddd	ed
ee   dee   fdZd Z	d Z
d Zed        Zy)SetGameScoreRequestl   l r   Nr7   r    r  r   r&   scoreedit_messager-  c                 X    || _         || _        || _        || _        || _        || _        yr   r7   r  r   ra	  rb	  r-  )r=   r7   r  r   ra	  rb	  r-  s          r>   r?   zSetGameScoreRequest.__init__"  s/     	
(
r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   r  rp   s      r>   rs   zSetGameScoreRequest.resolve"  r  r  c                 ^   dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         n| j
                  | j                  | j                  | j                  dS )Nr`	  )rB   r7   r  r   ra	  rb	  r-  )	rC   r7   r   rD   r  r   ra	  rb	  r-  rE   s    r>   rD   zSetGameScoreRequest.to_dict"  sy    &+5dii+JDII%%'PTPYPY''1;DLL(1St||++-Y]YeYeZZ --ZZ
 	
r@   c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j
                  j                         t        j                  d| j                        | j                  j                         t        j                  d| j                        f      S )	Nr@   s   ry   Fr   rz   r{   r}   )
rH   rK   rL   rb	  r-  r7   rI   r  r   ra	  rE   s    r>   rI   zSetGameScoreRequest._bytes"  s    xxKKD$5$5$=ARARV[A[qablplvlvl~  CG  CM  CM  QV  CVgh  \]  ^  _IIKKdgg&LL!KKdjj)
  	r@   c                     |j                         }t        |dz        }t        |dz        }|j                         }|j                         }|j                         }|j                         } | ||||||      S )Nrz   r{   rd	  r  )	rQ   rR   r   _edit_messager7  rS   r  r   _scores	            r>   rV   zSetGameScoreRequest.from_reader"  ss    !UQYeai$$&oo'')"#xvTaioppr@   r8  rr  r`   r@   r>   r`	  r`	  "  s|    NN	_ 	# 	 	X[ 	kstxky 	  HP  QU  HV 	Y	
 	q 	qr@   r`	  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)SetHistoryTTLRequestl   _p r   r7   r    rH	  c                      || _         || _        yr   r7   rH	  )r=   r7   rH	  s      r>   r?   zSetHistoryTTLRequest.__init__#  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zSetHistoryTTLRequest.resolve#  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nrl	  )rB   r7   rH	  )rC   r7   r   rD   rH	  rE   s    r>   rD   zSetHistoryTTLRequest.to_dict#  s<    '+5dii+JDII%%'PTPYPYkk
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   _r}   )rH   r7   rI   rK   rL   rH	  rE   s    r>   rI   zSetHistoryTTLRequest._bytes#  s=    xxIIKKdkk*
  	r@   c                 V    |j                         }|j                         } | ||      S )Nrn	  r  )rQ   rR   rS   rN	  s       r>   rV   z SetHistoryTTLRequest.from_reader#  r  r@   Nr   r`   r@   r>   rl	  rl	   #  r  r@   rl	  c                   ~    e Zd ZdZdZddeded   dedee   d	ee   d
ee	   ded   ded   fdZ
d Zd Zed        Zy)SetInlineBotResultsRequestl   $%v r   Nr  resultsr   r  galleryr  next_offset	switch_pmr   switch_webviewr   c	                 t    || _         || _        || _        || _        || _        || _        || _        || _        yr   r  ru	  r  rv	  r  rw	  rx	  ry	  )	r=   r  ru	  r  rv	  r  rw	  rx	  ry	  s	            r>   r?   z#SetInlineBotResultsRequest.__init__'#  s>     !$&",r@   c                    d| j                   | j                  g n9| j                  D cg c]$  }t        |t              r|j	                         n|& c}| j
                  | j                  | j                  | j                  t        | j                  t              r| j                  j	                         n| j                  t        | j                  t              r| j                  j	                         d	S | j                  d	S c c}w )Nrt	  )	rB   r  ru	  r  rv	  r  rw	  rx	  ry	  )r  ru	  rC   r   rD   r  rv	  r  rw	  rx	  ry	  r   s     r>   rD   z"SetInlineBotResultsRequest.to_dict4#  s    -!\\1roso{o{7|jkzRSU]G^		de8e7|//||||++5?PX5Y//1_c_m_m?I$J]J]_g?hd1199;

 
	
 os  oB  oB

 
	
 8}s   )Dc                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz  | j                  | j                  du rdnd	z  | j                  | j                  du rdnd
z        t        j                  d| j                        dt        j                  dt        | j                              dj                  d | j                  D              t        j                  d| j                        | j
                  | j
                  du rdn| j                  | j
                        | j                  | j                  du rdn| j                  j                         | j                  | j                  du rdf
      S | j                  j                         f
      S )Nr@   s   ry   Fr   rz   r{   r|   rI  rP  rG   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z4SetInlineBotResultsRequest._bytes.<locals>.<genexpr>F#  r  r   )rH   rK   rL   rv	  r  rw	  rx	  ry	  r  r   ru	  r  rJ   rI   rE   s    r>   rI   z!SetInlineBotResultsRequest._bytesA#  sa   xxKKDLL$8DLLE<QqWXbfbnbnbvz~  {G  {G  KP  {P]^  VW  X  ae  aq  aq  ay  }A  }M  }M  QV  }V  \]  \]  ^  gk  gu  gu  g}  AE  AO  AO  SX  AX  bc  ^_  `  im  i|  i|  iD  HL  H[  H[  _d  Hd  de  jl  m  nKKdmm,D#dll2C DSXXMobfbnbnMoEoKKdoo.##+t/?/?5/HCtOcOcdhdtdtOu>>)T^^u-DC4>>K`K`Kb&&.$2E2E2NC	
 	 		 VZUhUhUoUoUq	
 	 		r@   c           
         |j                         }t        |dz        }t        |dz        }|j                         }|j                          g }t        |j                               D ]#  }|j	                         }|j                  |       % |j                         }	|dz  r|j                         }
nd }
|dz  r|j	                         }nd }|dz  r|j	                         }nd } | |||	|||
||      S )Nrz   r{   r|   rI  rP  r{	  )r   r   rP   r   rN   r   r   )rQ   rR   r   _galleryr  r  _resultsrB   r   r	  _next_offset
_switch_pm_switch_webviews                r>   rV   z&SetInlineBotResultsRequest.from_readerM#  s   !	?	?$$&	v() 	 A%%'BOOB	  oo'19!//1LL19--/JJ2:$224O"OIxKYaks  BN  Zd  uD  E  	Er@   r   )rX   rY   rZ   r[   r\   r^   r   r   r   r   r?   rD   rI   r_   rV   r`   r@   r>   rt	  rt	  ##  s    NN- -t4N/O -]` -kstxky -  JR  SW  JX -  lt  ux  ly -  KS  Tk  Kl -  CK  Lb  Cc -

 E Er@   rt	  c                   `    e Zd ZdZdZdddddded	ee   d
ee   f
dZd Z	d Z
d Zed        Zy)SetInlineGameScoreRequestidr   Nr  r   r   r&   ra	  rb	  r-  c                 J    || _         || _        || _        || _        || _        yr   r  r   ra	  rb	  r-  )r=   r  r   ra	  rb	  r-  s         r>   r?   z"SetInlineGameScoreRequest.__init__n#  s(     
(
r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z!SetInlineGameScoreRequest.resolvex#  r   r   c                 H   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  | j                  dS )Nr	  )rB   r  r   ra	  rb	  r-  )rC   r  r   rD   r   ra	  rb	  r-  rE   s    r>   rD   z!SetInlineGameScoreRequest.to_dict{#  sm    ,'1$''8'D$''//#$''1;DLL(1St||++-Y]YeYeZZ --ZZ
 	
r@   c           
      h   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j
                  j                         | j                  j                         t        j                  d| j                        f      S )	Nr@   s   dry   Fr   rz   r{   r}   )	rH   rK   rL   rb	  r-  r  rI   r   ra	  rE   s    r>   rI   z SetInlineGameScoreRequest._bytes#  s    xxKKD$5$5$=ARARV[A[qablplvlvl~  CG  CM  CM  QV  CVgh  \]  ^  _GGNNLL!KKdjj)
  	r@   c                     |j                         }t        |dz        }t        |dz        }|j                         }|j                         }|j                         } | |||||      S )Nrz   r{   r	  r  )rQ   rR   r   ri	  r7  r  r   rj	  s           r>   rV   z%SetInlineGameScoreRequest.from_reader#  sd    !UQYeai""$'')"c86]cddr@   r8  rr  r`   r@   r>   r	  r	  j#  sv    NN8 ? [^ nvw{n|   KS  TX  KY Y
 e er@   r	  c                   R    e Zd ZdZdZddddddee   fd	Zd
 Zd Z	d Z
ed        Zy)SetTypingRequesti>Xr   Nr7   r    actionr-   r  c                 .    || _         || _        || _        yr   r7   r	  r  )r=   r7   r	  r  s       r>   r?   zSetTypingRequest.__init__#  s     	$r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zSetTypingRequest.resolve#  r   r   c                    dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  dS )Nr	  )rB   r7   r	  r  )rC   r7   r   rD   r	  r  rE   s    r>   rD   zSetTypingRequest.to_dict#  sb    #+5dii+JDII%%'PTPYPY/9$++x/Pdkk))+VZVaVa//	
 	
r@   c           	      b   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  | j                  du rdnt        j                  d| j                        | j                  j                         f      S )Nr@   s   >Xry   Fr   rz   r}   )rH   rK   rL   r  r7   rI   r	  rE   s    r>   rI   zSetTypingRequest._bytes#  s    xxKKDOO$;tRW?Wq]^`II??*doo.FCV[[Y]_c_n_nMoKK 
  	r@   c                     |j                         }|j                         }|dz  r|j                         }nd }|j                         } | |||      S )Nrz   r	  r  )rQ   rR   r   rS   r  _actions         r>   rV   zSetTypingRequest.from_reader#  sQ    !$$&19 //+KK&&(g+FFr@   rl   r(  r`   r@   r>   r	  r	  #  sT    NN%_ %6M %[cdg[h %S
 	G 	Gr@   r	  c            	       P    e Zd ZdZdZdddddded	efd
Zd Zd Z	d Z
ed        Zy)StartBotRequestl   xsM r   Nr=  r&   r7   r    r  r  c                     || _         || _        || _        ||| _        yt        j	                  t        j                  d      dd      | _        yrH  )r=  r7   r  r^   r$  r%  r&  r  )r=   r=  r7   r  r  s        r>   r?   zStartBotRequest.__init__#  sJ     	&&/&;PRPZPZ[\P]_dmqArr@   c                    K   |j                  |j                  | j                         d {         | _        |j                  |j                  | j                         d {         | _        y 7 E7 wrl   r  rp   s      r>   rs   zStartBotRequest.resolve#  r  r  c                 2   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  | j                  dS )Nr	  )rB   r=  r7   r  r  )rC   r=  r   rD   r7   r  r  rE   s    r>   rD   zStartBotRequest.to_dict#  sh    ")3DHHh)G488##%TXX+5dii+JDII%%'PTPYPY++
 	
r@   c           	          dj                  d| j                  j                         | j                  j                         t	        j
                  d| j                        | j                  | j                        f      S )Nr@   s   xsrG   )	rH   r=  rI   r7   rK   rL   r  rJ   r  rE   s    r>   rI   zStartBotRequest._bytes#  s_    xxHHOOIIKKdnn-  !1!12
  	r@   c                     |j                         }|j                         }|j                         }|j                         } | ||||      S )N)r=  r7   r  r  r  )rQ   rR   rD  rS   r-  r  s         r>   rV   zStartBotRequest.from_reader#  sK    ##%$$&%%'
++-t%\ZXXr@   rl   r  r`   r@   r>   r	  r	  #  sZ    NNsO s? sQT sad sS
 Y Yr@   r	  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)StartHistoryImportRequestl   Ds{h r   r7   r    	import_idc                      || _         || _        yr   r7   r	  )r=   r7   r	  s      r>   r?   z"StartHistoryImportRequest.__init__#  s     	"r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z!StartHistoryImportRequest.resolve#  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr	  )rB   r7   r	  )rC   r7   r   rD   r	  rE   s    r>   rD   z!StartHistoryImportRequest.to_dict$  s<    ,+5dii+JDII%%'PTPYPY
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   D=rG   )rH   r7   rI   rK   rL   r	  rE   s    r>   rI   z StartHistoryImportRequest._bytes$  s=    xxIIKKdnn-
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr	  rm  )rQ   rR   rS   
_import_ids       r>   rV   z%StartHistoryImportRequest.from_reader$  s+    $$&%%'
44r@   Nr   r`   r@   r>   r	  r	  #  sC    NN#_ # #S
 5 5r@   r	  c                   R    e Zd ZdZdZddddedee   fdZd	 Zd
 Z	d Z
ed        Zy)ToggleBotInAttachMenuRequestiiir   Nr=  r&   enabledrd   c                 .    || _         || _        || _        yr   r=  r	  rd   )r=   r=  r	  rd   s       r>   r?   z%ToggleBotInAttachMenuRequest.__init__$  s     *r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r?  rp   s      r>   rs   z$ToggleBotInAttachMenuRequest.resolve"$  r@  r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )Nr	  )rB   r=  r	  rd   )rC   r=  r   rD   r	  rd   rE   s    r>   rD   z$ToggleBotInAttachMenuRequest.to_dict%$  sB    /)3DHHh)G488##%TXX||!//	
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  rdf      S df      S )	Nr@   s   iiry   Fr   rz   r:  r;  )rH   rK   rL   rd   r=  rI   r	  rE   s    r>   rI   z#ToggleBotInAttachMenuRequest._bytes-$  sp    xxKKD$6$6$>$BTBTX]B]qcdfHHOO!\\M	
  	 0=	
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         } | |||      S )Nrz   r	  r  )rQ   rR   r   r   rD  _enableds         r>   rV   z(ToggleBotInAttachMenuRequest.from_reader5$  sF    !eai##%%%'tX^LLr@   rl   r  r`   r@   r>   r	  r	  $  sQ    NN+O +d +8TX> +Q
 M Mr@   r	  c                   <    e Zd ZdZdZdefdZd Zd Ze	d        Z
y)	ToggleDialogFilterTagsRequestl   IZ[z r   r	  c                     || _         yr   r	  )r=   r	  s     r>   r?   z&ToggleDialogFilterTagsRequest.__init__C$  r[  r@   c                      d| j                   dS )Nr	  )rB   r	  r	  rE   s    r>   rD   z%ToggleDialogFilterTagsRequest.to_dictI$  s    0||
 	
r@   c                 N    dj                  d| j                  rdf      S df      S )Nr@   s   I-r:  r;  )rH   r	  rE   s    r>   rI   z$ToggleDialogFilterTagsRequest._bytesO$  s6    xx!\\M
  	/<
  	r@   c                 4    |j                         } | |      S )Nr	  )r=  )rQ   rR   r	  s      r>   rV   z)ToggleDialogFilterTagsRequest.from_readerU$  s    %%'8$$r@   Nr  r`   r@   r>   r	  r	  ?$  s6    NN 
 % %r@   r	  c                   N    e Zd ZdZdZddddee   fdZd Zd	 Z	d
 Z
ed        Zy)ToggleDialogPinRequestl   WbcN r   Nr7   r   pinnedc                      || _         || _        yr   r7   r	  r=   r7   r	  s      r>   r?   zToggleDialogPinRequest.__init___$  r  r@   c                 `   K   |j                  | j                         d {   | _        y 7 
wrl   rR  r7   rp   s      r>   rs   zToggleDialogPinRequest.resolvef$  "      22499==	=   .,.c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr	  rB   r7   r	  rC   r7   r   rD   r	  rE   s    r>   rD   zToggleDialogPinRequest.to_dicti$  r  r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         f      S )Nr@   s   W1ry   Fr   rz   rH   rK   rL   r	  r7   rI   rE   s    r>   rI   zToggleDialogPinRequest._bytesp$  sP    xxKKDKK$74;;%;OqUVXII
  	r@   c                 r    |j                         }t        |dz        }|j                         } | ||      S Nrz   r	  r  rQ   rR   r   _pinnedrS   s        r>   rV   z"ToggleDialogPinRequest.from_readerw$  6    !uqy/$$&g..r@   rl   r  r`   r@   r>   r	  r	  [$  G    NN2 HTN >
 / /r@   r	  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)ToggleNoForwardsRequestl   /=b r   r7   r    r	  c                      || _         || _        yr   r7   r	  )r=   r7   r	  s      r>   r?   z ToggleNoForwardsRequest.__init__$  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zToggleNoForwardsRequest.resolve$  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr	  )rB   r7   r	  )rC   r7   r   rD   r	  rE   s    r>   rD   zToggleNoForwardsRequest.to_dict$  s<    *+5dii+JDII%%'PTPYPY||
 	
r@   c                     dj                  d| j                  j                         | j                  rdf      S df      S )Nr@   s   r:  r;  )rH   r7   rI   r	  rE   s    r>   rI   zToggleNoForwardsRequest._bytes$  sH    xxII!\\M
  	 0=
  	r@   c                 V    |j                         }|j                         } | ||      S )Nr	  r  )rQ   rR   rS   r	  s       r>   rV   z#ToggleNoForwardsRequest.from_reader$  s+    $$&%%'x00r@   Nr  r`   r@   r>   r	  r	  $  sC    NN_ t S
 1 1r@   r	  c                   J    e Zd ZdZdZdddeddfdZd	 Zd
 Zd Z	e
d        Zy) TogglePaidReactionPrivacyRequestiXCr   r7   r    re   r  r*   c                 .    || _         || _        || _        yr   r7   re   r  )r=   r7   re   r  s       r>   r?   z)TogglePaidReactionPrivacyRequest.__init__$  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z(TogglePaidReactionPrivacyRequest.resolve$  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         dS | j
                  dS )Nr	  )rB   r7   re   r  )rC   r7   r   rD   re   r  rE   s    r>   rD   z(TogglePaidReactionPrivacyRequest.to_dict$  sp    3+5dii+JDII%%'PTPYPYkk1;DLL(1St||++-	
 	
 Z^YeYe	
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        | j                  j                         f      S )Nr@   s   XCr}   )rH   r7   rI   rK   rL   re   r  rE   s    r>   rI   z'TogglePaidReactionPrivacyRequest._bytes$  sM    xxIIKKdkk*LL!	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )Nr	  r  )rQ   rR   rS   r   r  s        r>   rV   z,TogglePaidReactionPrivacyRequest.from_reader$  s9    $$&//#'')gx@@r@   Nr   r`   r@   r>   r	  r	  $  sM    NN_ c D] S
 A Ar@   r	  c                   N    e Zd ZdZdZddddee   fdZd Zd	 Z	d
 Z
ed        Zy)TogglePeerTranslationsRequestl   y5H r   Nr7   r    disabledc                      || _         || _        yr   r7   r	  )r=   r7   r	  s      r>   r?   z&TogglePeerTranslationsRequest.__init__$  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z%TogglePeerTranslationsRequest.resolve$  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr	  )rB   r7   r	  )rC   r7   r   rD   r	  rE   s    r>   rD   z%TogglePeerTranslationsRequest.to_dict$  s<    0+5dii+JDII%%'PTPYPY
 	
r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         f      S )Nr@   s   y|ry   Fr   rz   )rH   rK   rL   r	  r7   rI   rE   s    r>   rI   z$TogglePeerTranslationsRequest._bytes$  sP    xxKKDMM$9T]]e=SqYZ\II
  	r@   c                 r    |j                         }t        |dz        }|j                         } | ||      S )Nrz   r	  r  )rQ   rR   r   	_disabledrS   s        r>   rV   z)TogglePeerTranslationsRequest.from_reader$  s6    !O	$$&	22r@   rl   r  r`   r@   r>   r	  r	  $  sG    NN!_ ! !S
 3 3r@   r	  c                   N    e Zd ZdZdZddddee   fdZd Zd	 Z	d
 Z
ed        Zy)ToggleSavedDialogPinRequestl   ;Y r   Nr7   r   r	  c                      || _         || _        yr   r	  r	  s      r>   r?   z$ToggleSavedDialogPinRequest.__init__$  r  r@   c                 `   K   |j                  | j                         d {   | _        y 7 
wrl   r	  rp   s      r>   rs   z#ToggleSavedDialogPinRequest.resolve$  r	  r	  c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr	  r	  r	  rE   s    r>   rD   z#ToggleSavedDialogPinRequest.to_dict$  r  r@   c                     dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         f      S )Nr@   s   ޻ry   Fr   rz   r	  rE   s    r>   rI   z"ToggleSavedDialogPinRequest._bytes%  sP    xxKKDKK$74;;%;OqUVXII
  	r@   c                 r    |j                         }t        |dz        }|j                         } | ||      S r	  r  r	  s        r>   rV   z'ToggleSavedDialogPinRequest.from_reader%  r	  r@   rl   r  r`   r@   r>   r	  r	  $  r	  r@   r	  c            
       b    e Zd ZdZdZdded   dee   dee   dee   fd	Zd
 Z	d Z
ed        Zy)ToggleStickerSetsRequestl   /
j r   Nstickersetsr$   	uninstallarchive	unarchivec                 <    || _         || _        || _        || _        yr   r	  r	  r	  r	  )r=   r	  r	  r	  r	  s        r>   r?   z!ToggleStickerSetsRequest.__init__%  s!     '""r@   c                     d| j                   g n9| j                   D cg c]$  }t        |t              r|j                         n|& c}| j                  | j
                  | j                  dS c c}w )Nr	  )rB   r	  r	  r	  r	  )r	  rC   r   rD   r	  r	  r	  r   s     r>   rD   z ToggleStickerSetsRequest.to_dict!%  su    +!%!1!1!92w{  xH  xH  @IrszZ[]eOf		lm@m  @I||
 	
 @Is   )A-c                    dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz        d	t        j                  d
t        | j                              dj                  d | j                  D              f      S )Nr@   s   /ry   Fr   rz   r{   r|   r   r}   c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z2ToggleStickerSetsRequest._bytes.<locals>.<genexpr>.%  r  r   )rH   rK   rL   r	  r	  r	  r   r	  rE   s    r>   rI   zToggleStickerSetsRequest._bytes*%  s	   xxKKDNN$:dnnPU>Uq[\fjfrfrfz  C  K  K  OT  Tab  Z[  \  ei  es  es  e{  C  M  M  QV  V  `a  \]  ^  _D#d6F6F2G HQwfjfvfvQwIw
  	r@   c                 0   |j                         }t        |dz        }t        |dz        }t        |dz        }|j                          g }t        |j                               D ]#  }|j                         }|j	                  |       %  | ||||      S )Nrz   r{   r|   r	  r6  )	rQ   rR   r   
_uninstall_archive
_unarchive_stickersetsrB   r   s	            r>   rV   z$ToggleStickerSetsRequest.from_reader1%  s    !%!)_
	?%!)_
v() 	$A%%'B#	$ |z8_ijjr@   r.  )rX   rY   rZ   r[   r\   r   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r	  r	  %  sr    NN#D)>$? #HUYN #jrswjx #  KS  TX  KY #
 k kr@   r	  c                   f    e Zd ZdZdZddddedee   dee   d	ee	   f
d
Z
d Zd Zd Zed        Zy)"ToggleSuggestedPostApprovalRequestl   \E r   Nr7   r    re   rejectr  reject_commentc                 J    || _         || _        || _        || _        || _        yr   r7   re   r
  r  r
  )r=   r7   re   r
  r  r
  s         r>   r?   z+ToggleSuggestedPostApprovalRequest.__init__E%  s)     	*,r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z*ToggleSuggestedPostApprovalRequest.resolveO%  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  dS )Nr 
  )rB   r7   re   r
  r  r
  )rC   r7   r   rD   re   r
  r  r
  rE   s    r>   rD   z*ToggleSuggestedPostApprovalRequest.to_dictR%  sU    5+5dii+JDII%%'PTPYPYkkkk!//"11
 	
r@   c           
      V   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz        | j                  j                         t        j                  d	| j                        | j                  | j                  du rdn| j                  | j                        | j
                  | j
                  du rdf      S | j                  | j
                        f      S )
Nr@   s   \Ery   Fr   r{   rz   r|   r}   )rH   rK   rL   r
  r  r
  r7   rI   re   r  rJ   rE   s    r>   rI   z)ToggleSuggestedPostApprovalRequest._bytes\%  sj   xxKKDKK$74;;%;OqUV`d`r`r`z  C  Q  Q  UZ  Z[\  `a  b  ko  k~  k~  kF  JN  J]  J]  af  Jf  fg  lm  n  oIIKKdkk*%%-1C1Cu1LCSWSjSjkok}k}S~&&.$2E2E2NC
  	 VZUiUijnj}j}U~
  	r@   c                     |j                         }t        |dz        }|j                         }|j                         }|dz  r|j                         }nd }|dz  r|j	                         }nd } | |||||      S )Nr{   rz   r|   r
  r  )rQ   rR   r   _rejectrS   r   r  _reject_comments           r>   rV   z.ToggleSuggestedPostApprovalRequest.from_readerf%  s}    !uqy/$$&//#19#//1N!N19$224O"Ogg^l{||r@   r.  rk  r`   r@   r>   r 
  r 
  A%  sx    NN-_ -c -8D> -gopxgy -  QY  Z]  Q^ -S
 } }r@   r 
  c            	       Z    e Zd ZdZdZdddedee   dee   fdZd	 Zd
 Z	d Z
ed        Zy)ToggleTodoCompletedRequestl   $1' r   r7   r    re   	completedincompletedc                 <    || _         || _        || _        || _        yr   r7   re   r
  r
  )r=   r7   re   r
  r
  s        r>   r?   z#ToggleTodoCompletedRequest.__init__|%  s!     	"&r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z"ToggleTodoCompletedRequest.resolve%  r   r   c                    dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  g n| j
                  d d  | j                  g dS | j                  d d  dS )Nr
  )rB   r7   re   r
  r
  )rC   r7   r   rD   re   r
  r
  rE   s    r>   rD   z"ToggleTodoCompletedRequest.to_dict%  s~    -+5dii+JDII%%'PTPYPYkk#~~54>>!;L!%!1!1!92
 	

 @D?O?OPQ?R
 	
r@   c                    dj                  d| j                  j                         t        j                  d| j
                        dt        j                  dt        | j                              dj                  d | j                  D              dt        j                  dt        | j                              dj                  d | j                  D              f	      S )Nr@   s   $1r}   r   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z4ToggleTodoCompletedRequest._bytes.<locals>.<genexpr>%  r  r  c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z4ToggleTodoCompletedRequest._bytes.<locals>.<genexpr>%  r  r  )	rH   r7   rI   rK   rL   re   r   r
  r
  rE   s    r>   rI   z!ToggleTodoCompletedRequest._bytes%  s    xxIIKKdkk*D#dnn2E FsxxO}nrn|n|O}G}D#d6F6F2G H  RBpt  qA  qA  RB  JB
  	r@   c                    |j                         }|j                         }|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | ||||      S )Nr
  r   )rQ   rR   rS   r   
_completedrB   r   _incompleteds           r>   rV   z&ToggleTodoCompletedRequest.from_reader%  s    $$&//#
v() 	"A"Bb!	" 	v() 	$A"B#	$ gQ]^^r@   Nr   r`   r@   r>   r
  r
  x%  s^    NN'_ 'c 'd3i '^bcf^g 'S
 _ _r@   r
  c                   F    e Zd ZdZdZdddefdZd Zd Zd	 Z	e
d
        Zy)TranscribeAudioRequestiI&i6I!r7   r    re   c                      || _         || _        y)zS
        :returns messages.TranscribedAudio: Instance of TranscribedAudio.
        Nr  r  s      r>   r?   zTranscribeAudioRequest.__init__%  r  r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   zTranscribeAudioRequest.resolve%  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr
  r  r  rE   s    r>   rD   zTranscribeAudioRequest.to_dict%  r  r@   c                     dj                  d| j                  j                         t        j                  d| j
                        f      S )Nr@   s   I&r}   r  rE   s    r>   rI   zTranscribeAudioRequest._bytes%  r  r@   c                 V    |j                         }|j                         } | ||      S r  r  r  s       r>   rV   z"TranscribeAudioRequest.from_reader%  r  r@   Nr   r`   r@   r>   r
  r
  %  r  r@   r
  c                   n    e Zd ZdZdZddeded   deee      deed	      fd
Z	d Z
d Zd Zed        Zy)TranslateTextRequesti00ciCBNto_langr7   r    r  rt  r1   c                 <    || _         || _        || _        || _        y)zP
        :returns messages.TranslatedText: Instance of TranslateResult.
        Nr"
  r7   r  rt  )r=   r"
  r7   r  rt  s        r>   r?   zTranslateTextRequest.__init__%  s      		r@   c                    K   | j                   r8|j                  |j                  | j                          d {         | _         y y 7 wrl   rm   rp   s      r>   rs   zTranslateTextRequest.resolve%  rt   ru   c                 r   d| j                   t        | j                  t              r| j                  j	                         n| j                  | j
                  g n| j
                  d d  | j                  g dS | j                  D cg c]$  }t        |t              r|j	                         n|& c}dS c c}w )Nr!
  )rB   r"
  r7   r  rt  )r"
  rC   r7   r   rD   r  rt  r   s     r>   rD   zTranslateTextRequest.to_dict%  s    '||+5dii+JDII%%'PTPYPY"TWWQZ))+B
 	

 jnirir1sdeAxAX!))+^_2_1s
 	

 2ts   )B4c                 P   | j                   s| j                   | j                  sG| j                  ;| j                   | j                   du r| j                  | j                  du sJ d       dj                  dt        j                  d| j                   | j                   du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz        | j                   | j                   du rdn| j                   j                         | j                  | j                  du rdnZdj                  d	t        j                  d
t        | j                              dj                  d | j                  D              f      | j
                  | j
                  du rdnZdj                  d	t        j                  d
t        | j
                              dj                  d | j
                  D              f      | j                  | j                        f      S )NFzDpeer, id parameters must all be False-y (like None) or all me True-yr@   s   00cry   r   rz   r{   r   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z.TranslateTextRequest._bytes.<locals>.<genexpr>%  r  r  c              3   <   K   | ]  }|j                           y wrl   r   r   s     r>   r   z.TranslateTextRequest._bytes.<locals>.<genexpr>%  s7       Ih  YZ  JK  JR  JR  JT  Ihr   )
r7   r  rH   rK   rL   rt  rI   r   rJ   r"
  rE   s    r>   rI   zTranslateTextRequest._bytes%  s   dii3$''TWWEX`d`i`i`quyu~u~  CH  vH  OS  OV  OV  O^  bf  bi  bi  mr  br  	|  v|  	|  txxKKDII$5e9KqQR\`\c\c\kosovovzoWX  FG  H  QU  QZ  QZ  Qb  fj  fo  fo  sx  fx  LM  ~  @  A99$		U(:CAQAQAS77?dgg&6CCHHFYZ`ZeZefjloptpwpwlxZyz}  {C  {C  Cj  bf  bi  bi  Cj  {j  Fk  =l99$		U(:CJ]^d^i^ijnpstxt}t}p~^  AD  AI  AI  Ih  ^b  ^g  ^g  Ih  Ah  Ji  Aj  .
  	r@   c                    |j                         }|dz  r|j                         }nd }|dz  rR|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % nd }|dz  rR|j                          g }t        |j                               D ]#  }|j                         }|j                  |       % nd }|j	                         } | ||||      S )Nrz   r{   r$
  )r   rN   r   r   r   )	rQ   rR   r   rS   r  rB   r   r{  _to_langs	            r>   rV   z TranslateTextRequest.from_reader%  s    !19((*EE19OOC6??,- __&

2
 C19OOE6??,- !))+R !
 E'')8%CeDDr@   r.  )rX   rY   rZ   r[   r\   r   r   r   r^   r?   rs   rD   rI   r_   rV   r`   r@   r>   r!
  r!
  %  s}    NN 8O+D xX\]`XaOb owx|  ~T  yU  pV W
	 E Er@   r!
  c                   8    e Zd ZdZdZddZd Zd Zed        Z	y)	UninstallStickerSetRequestl   Ur r   c                     || _         yr   r+  )r=   r+  s     r>   r?   z#UninstallStickerSetRequest.__init__&  r1  r@   c                     dt        | j                  t              r| j                  j                         dS | j                  dS )Nr-
  )rB   r+  )rC   r+  r   rD   rE   s    r>   rD   z"UninstallStickerSetRequest.to_dict&  s@    -7A$//S[7\$//113
 	
bfbqbq
 	
r@   c                 X    dj                  d| j                  j                         f      S )Nr@   s   Un)rH   r+  rI   rE   s    r>   rI   z!UninstallStickerSetRequest._bytes#&  s+    xxOO""$
  	r@   c                 4    |j                         } | |      S )Nr/
  r   )rQ   rR   r1  s      r>   rV   z&UninstallStickerSetRequest.from_reader)&  s    **,k**r@   N)r+  r$   rS  r`   r@   r>   r-
  r-
  &  s/    NN%
 + +r@   r-
  c                   X    e Zd ZdZdZddddee   ded   fdZd	 Zd
 Z	d Z
ed        Zy)UnpinAllMessagesRequestiG-r  Nr7   r    r  r  c                 .    || _         || _        || _        yr  r   r  s       r>   r?   z UnpinAllMessagesRequest.__init__3&  r  r@   c                 
  K   |j                  |j                  | j                         d {         | _        | j                  r8|j                  |j                  | j                         d {         | _        y y 7 R7 wrl   r  rp   s      r>   rs   zUnpinAllMessagesRequest.resolve;&  r  rM  c                     dt        | j                  t              r| j                  j                         n| j                  | j                  t        | j
                  t              r| j
                  j                         dS | j
                  dS )Nr4
  r  r  rE   s    r>   rD   zUnpinAllMessagesRequest.to_dict@&  su    *+5dii+JDII%%'PTPYPY//=GHZHZ\d=eT//779	
 	
 lpk}k}	
 	
r@   c           	         dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz        | j
                  j                         | j                  | j                  du rdnt        j                  d| j                        | j                  | j                  du rdf      S | j                  j                         f      S )	Nr@   s   G-ry   Fr   rz   r{   r}   r  rE   s    r>   rI   zUnpinAllMessagesRequest._bytesH&  s   xxKKDOO$;tRW?Wq]^hlhzhz  iC  GK  GY  GY  ]b  Gbcd  hi  j  kII??*doo.FCV[[Y]_c_n_nMo%%-1C1Cu1LC
  	
 TXSeSeSlSlSn
  	r@   c                     |j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd } | |||      S r
  r  r  s         r>   rV   z#UnpinAllMessagesRequest.from_readerQ&  r  r@   r8  r(  r`   r@   r>   r4
  r4
  /&  sW    NN+_ +(3- +]efu]v +i

 U Ur@   r4
  c                   H    e Zd ZdZdZddeded   fdZd Zd	 Z	e
d
        Zy)UpdateDialogFilterRequestiJr   Nr  r  r   c                      || _         || _        yr   r  r  )r=   r  r  s      r>   r?   z"UpdateDialogFilterRequest.__init__e&  r  r@   c                     d| j                   t        | j                  t              r| j                  j	                         dS | j                  dS )Nr;
  )rB   r  r  )r  rC   r  r   rD   rE   s    r>   rD   z!UpdateDialogFilterRequest.to_dictl&  sJ    ,''/9$++x/Pdkk))+
 	
 W[VaVa
 	
r@   c                 :   dj                  dt        j                  d| j                  | j                  du rdnd      t        j                  d| j                        | j                  | j                  du rdf      S | j                  j                         f      S )Nr@   s   Jry   Fr   rz   r}   )rH   rK   rL   r  r  rI   rE   s    r>   rI   z UpdateDialogFilterRequest._bytess&  s    xxKKDKK$74;;%;OqUVXKKdgg&;;&$++*>C	
  	 FJ[[EWEWEY	
  	r@   c                     |j                         }|j                         }|dz  r|j                         }nd } | ||      S )Nrz   r=
  r  )rQ   rR   r   r  r  s        r>   rV   z%UpdateDialogFilterRequest.from_reader{&  sA    !oo19**,GGc'**r@   rl   )rX   rY   rZ   r[   r\   r^   r   r?   rD   rI   r_   rV   r`   r@   r>   r;
  r;
  a&  sC    NN3 1C(D 
 + +r@   r;
  c                   B    e Zd ZdZdZdee   fdZd Zd Z	e
d        Zy)	UpdateDialogFiltersOrderRequestl   A
 r   r,  c                     || _         yr   rQ  rR  s     r>   r?   z(UpdateDialogFiltersOrderRequest.__init__&  rO  r@   c                 F    d| j                   g dS | j                   d d  dS )NrB
  rT  rQ  rE   s    r>   rD   z'UpdateDialogFiltersOrderRequest.to_dict&  s0    2::-R
 	
37::a=
 	
r@   c           
          dj                  ddt        j                  dt        | j                              dj                  d | j                  D              f      S )Nr@   s   cr   r}   c              3   H   K   | ]  }t        j                  d |        ywr  r  r   s     r>   r   z9UpdateDialogFiltersOrderRequest._bytes.<locals>.<genexpr>&  rA  r  rW  rE   s    r>   rI   z&UpdateDialogFiltersOrderRequest._bytes&  sK    xxD#djj/ B388KujnjtjtKuCu
  	r@   c                     |j                          g }t        |j                               D ]#  }|j                         }|j                  |       %  | |      S rY  r  rZ  s        r>   rV   z+UpdateDialogFiltersOrderRequest.from_reader&  r[  r@   Nr  r`   r@   r>   rB
  rB
  &  r\  r@   rB
  c                   J    e Zd ZdZdZdddedefdZd Zd	 Z	d
 Z
ed        Zy)UpdatePinnedForumTopicRequestiQ]r   r7   r    r~  r	  c                 .    || _         || _        || _        yr   r7   r~  r	  )r=   r7   r~  r	  s       r>   r?   z&UpdatePinnedForumTopicRequest.__init__&  s     	 r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z%UpdatePinnedForumTopicRequest.resolve&  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  dS )NrI
  )rB   r7   r~  r	  )rC   r7   r   rD   r~  r	  rE   s    r>   rD   z%UpdatePinnedForumTopicRequest.to_dict&  sC    0+5dii+JDII%%'PTPYPYkk	
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        | j                  rdf      S df      S )Nr@   s   Q]r}   r:  r;  )rH   r7   rI   rK   rL   r~  r	  rE   s    r>   rI   z$UpdatePinnedForumTopicRequest._bytes&  sZ    xxIIKKdmm,![[M	
  	 /<	
  	r@   c                 x    |j                         }|j                         }|j                         } | |||      S )NrK
  )rN   r   r=  )rQ   rR   rS   r  r	  s        r>   rV   z)UpdatePinnedForumTopicRequest.from_reader&  s9    $$&OO%	$$&	'BBr@   Nr?  r`   r@   r>   rI
  rI
  &  sL    NN_  T S
 C Cr@   rI
  c                   f    e Zd ZdZdZddddedee   dee   d	ee   f
d
Zd Z	d Z
d Zed        Zy)UpdatePinnedMessageRequestl   wU% r   Nr7   r    r  r  unpin
pm_onesidec                 J    || _         || _        || _        || _        || _        yr   r7   r  r  rR
  rS
  )r=   r7   r  r  rR
  rS
  s         r>   r?   z#UpdatePinnedMessageRequest.__init__&  s'     	
$r@   c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wrl   r   rp   s      r>   rs   z"UpdatePinnedMessageRequest.resolve&  r   r   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  | j                  | j                  dS )NrQ
  )rB   r7   r  r  rR
  rS
  )rC   r7   r   rD   r  r  rR
  rS
  rE   s    r>   rD   z"UpdatePinnedMessageRequest.to_dict&  sQ    -+5dii+JDII%%'PTPYPY''kkZZ//
 	
r@   c           	      t   dj                  dt        j                  d| j                  | j                  du rdnd| j                  | j                  du rdndz  | j
                  | j
                  du rdndz        | j                  j                         t        j                  d	| j                        f      S )
Nr@   s   ry   Fr   rz   r{   r|   r}   )	rH   rK   rL   r  rR
  rS
  r7   rI   r  rE   s    r>   rI   z!UpdatePinnedMessageRequest._bytes&  s    xxKKDKK$74;;%;OqUV`d`j`j`rvz  wA  wA  EJ  wJ[\  PQ  R  [_  [j  [j  [r  vz  vE  vE  IN  vN  VW  TU  V  WIIKKdgg&	
  	r@   c                     |j                         }t        |dz        }t        |dz        }t        |dz        }|j                         }|j                         } | |||||      S )Nrz   r{   r|   rU
  r  )rQ   rR   r   r   _unpin_pm_onesiderS   r  s           r>   rV   z&UpdatePinnedMessageRequest.from_reader&  sc    !uqy/eai519o$$&oo#gVP[\\r@   r.  rr  r`   r@   r>   rQ
  rQ
  &  sx    NN%_ %# %x~ %[cdh[i %  }E  FJ  }K %S
 ] ]r@   rQ
  c                   H    e Zd ZdZdZddddee   fdZd Zd	 Z	e
d
        Zy)UpdateSavedReactionTagRequesti})`r   Nr  r+   r2  c                      || _         || _        yr   r  r2  )r=   r  r2  s      r>   r?   z&UpdateSavedReactionTagRequest.__init__'  s     !
r@   c                     dt        | j                  t              r| j                  j                         n| j                  | j                  dS )Nr]
  )rB   r  r2  )rC   r  r   rD   r2  rE   s    r>   rD   z%UpdateSavedReactionTagRequest.to_dict	'  s<    03=dmmX3V--/\`\i\iZZ
 	
r@   c                 0   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  | j                  du rdf      S | j                  | j                        f      S )Nr@   s   })`ry   Fr   rz   )rH   rK   rL   r2  r  rI   rJ   rE   s    r>   rI   z$UpdateSavedReactionTagRequest._bytes'  s    xxKKDJJ$6$**:MqSTVMM  "::%u)<C	
  	 DHCWCWX\XbXbCc	
  	r@   c                     |j                         }|j                         }|dz  r|j                         }nd } | ||      S )Nrz   r_
  r  )rQ   rR   r   r  r?  s        r>   rV   z)UpdateSavedReactionTagRequest.from_reader'  sC    !((*	19))+FFIV44r@   rl   )rX   rY   rZ   r[   r\   r   r   r?   rD   rI   r_   rV   r`   r@   r>   r]
  r]
  &  sA    NN  
 5 5r@   r]
  c                   8    e Zd ZdZdZddZd Zd Zed        Z	y)	UploadEncryptedFileRequestiWPl   gT c                      || _         || _        y)z_
        :returns EncryptedFile: Instance of either EncryptedFileEmpty, EncryptedFile.
        Nr7   r  )r=   r7   r  s      r>   r?   z#UploadEncryptedFileRequest.__init__('  ry  r@   c                 
   dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         dS | j                  dS )Nrd
  )rB   r7   r  )rC   r7   r   rD   r  rE   s    r>   rD   z"UploadEncryptedFileRequest.to_dict/'  si    -+5dii+JDII%%'PTPYPY+5dii+JDII%%'
 	
 QUPYPY
 	
r@   c                     dj                  d| j                  j                         | j                  j                         f      S )Nr@   s   WP)rH   r7   rI   r  rE   s    r>   rI   z!UploadEncryptedFileRequest._bytes6'  s;    xxIIII
  	r@   c                 V    |j                         }|j                         } | ||      S )Nrf
  r   )rQ   rR   rS   r  s       r>   rV   z&UploadEncryptedFileRequest.from_reader='  r  r@   N)r7   r   r  r   rS  r`   r@   r>   rd
  rd
  $'  s/    NN
 + +r@   rd
  c                   N    e Zd ZdZdZdddededdfd	Zd
 Zd Z	d Z
ed        Zy)UploadImportedMediaRequesti *2lGr7   r    r	  	file_namer  r   c                 <    || _         || _        || _        || _        ya  
        :returns MessageMedia: Instance of either MessageMediaEmpty, MessageMediaPhoto, MessageMediaGeo, MessageMediaContact, MessageMediaUnsupported, MessageMediaDocument, MessageMediaWebPage, MessageMediaVenue, MessageMediaGame, MessageMediaInvoice, MessageMediaGeoLive, MessageMediaPoll, MessageMediaDice, MessageMediaStory, MessageMediaGiveaway, MessageMediaGiveawayResults, MessageMediaPaidMedia, MessageMediaToDo.
        Nr7   r	  rm
  r  )r=   r7   r	  rm
  r  s        r>   r?   z#UploadImportedMediaRequest.__init__H'  s      	""
r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  | j                        | _        y 7 .wrl   rn   ro   r7   r  r  rp   s      r>   rs   z"UploadImportedMediaRequest.resolveQ'  F     ((v/F/Ftyy/Q)QR	**4::6
 *R   *AA/Ac                 6   dt        | j                  t              r| j                  j                         n| j                  | j                  | j
                  t        | j                  t              r| j                  j                         dS | j                  dS )Nrk
  )rB   r7   r	  rm
  r  )rC   r7   r   rD   r	  rm
  r  rE   s    r>   rD   z"UploadImportedMediaRequest.to_dictU'  sw    -+5dii+JDII%%'PTPYPY-7

H-MTZZ'')
 	

 TXS]S]
 	
r@   c                     dj                  d| j                  j                         t        j                  d| j
                        | j                  | j                        | j                  j                         f      S )Nr@   s    *rG   )	rH   r7   rI   rK   rL   r	  rJ   rm
  r  rE   s    r>   rI   z!UploadImportedMediaRequest._bytes^'  s_    xxIIKKdnn-  0JJ
  	r@   c                     |j                         }|j                         }|j                         }|j                         } | ||||      S )Nrp
  r  )rQ   rR   rS   r	  
_file_namer+  s         r>   rV   z&UploadImportedMediaRequest.from_readerg'  sL    $$&%%'
))+
%%'zQWXXr@   N)rX   rY   rZ   r[   r\   r^   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   rk
  rk
  D'  sS    NN_   Ue 7
 Y Yr@   rk
  c                   R    e Zd ZdZdZddddddee   fd	Zd
 Zd Z	d Z
ed        Zy)UploadMediaRequestixyrl
  Nr7   r    r  r   business_connection_idc                 .    || _         || _        || _        yro
  r7   r  r{
  )r=   r7   r  r{
  s       r>   r?   zUploadMediaRequest.__init__t'  s     	
&<#r@   c                    K   |j                  |j                  | j                         d {         | _        |j                  | j                        | _        y 7 .wrl   rr
  rp   s      r>   rs   zUploadMediaRequest.resolve|'  rs
  rt
  c                    dt        | j                  t              r| j                  j                         n| j                  t        | j                  t              r| j                  j                         n| j                  | j
                  dS )Nrz
  )rB   r7   r  r{
  )rC   r7   r   rD   r  r{
  rE   s    r>   rD   zUploadMediaRequest.to_dict'  sd    %+5dii+JDII%%'PTPYPY-7

H-MTZZ'')SWS]S]&*&A&A	
 	
r@   c                 X   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  | j                  du rdn| j	                  | j                        | j
                  j                         | j                  j                         f      S )Nr@   s   xyry   Fr   rz   )rH   rK   rL   r{
  rJ   r7   rI   r  rE   s    r>   rI   zUploadMediaRequest._bytes'  s    xxKKD$?$?$G4KfKfjoKoquvx..6$:U:UY^:^Ceieyeyz~  {V  {V  fWIIJJ
  	r@   c                     |j                         }|dz  r|j                         }nd }|j                         }|j                         } | |||      S )Nrz   r}
  )r   r   rN   )rQ   rR   r   _business_connection_idrS   r+  s         r>   rV   zUploadMediaRequest.from_reader'  sV    !19&,&:&:&<#&*#$$&%%'VD[\\r@   rl   )rX   rY   rZ   r[   r\   r   r   r?   rs   rD   rI   r_   rV   r`   r@   r>   rz
  rz
  p'  sS    NN=_ =5E =_ghk_l =7
 	] 	]r@   rz
  c                   >    e Zd ZdZdZd	defdZd Zd Ze	d        Z
y)
ViewSponsoredMessageRequestiC6&r   Nr  c                 x    ||| _        yt         j                  t        j                  d      dd      | _        yr   )r^   r$  r%  r&  r  )r=   r  s     r>   r?   z$ViewSponsoredMessageRequest.__init__'  s4     '0&;PRPZPZ[\P]_dmqArr@   c                      d| j                   dS )Nr
  )rB   r  r  rE   s    r>   rD   z#ViewSponsoredMessageRequest.to_dict'  s    .
 	
r@   c                 Z    dj                  d| j                  | j                        f      S )Nr@   s   C6&)rH   rJ   r  rE   s    r>   rI   z"ViewSponsoredMessageRequest._bytes'  s-    xx  0
  	r@   c                 4    |j                         } | |      S )Nr
  r  )rQ   rR   r-  s      r>   rV   z'ViewSponsoredMessageRequest.from_reader'  s    ((*
Z((r@   rl   r  r`   r@   r>   r
  r
  '  s8    NNs% s
 ) )r@   r
  (#  __doc__tl.tlobjectr   r   rX	  r   r   r   r	   r%  rK   r
   tl.typesr   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$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r5   rb   r   r   r   r   r   r   r   r
  r  r  r0  rB  rW  ri  rt  r  r  r  r  r  r  r  r  r  r  r  r'  r3  rA  rK  rY  ra  rs  r}  r  r  r  r  r  r  r  r  r  r)  r:  rF  rL  rU  r^  re  rp  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r"  r-  r;  rA  rG  rN  rU  r[  rb  rm  rv  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r(  r/  r7  r?  rF  rK  r[  rc  rj  rp  rw  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r"  r*  r3  rE  rJ  rP  rX  r`  rg  ro  ry  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r+  r:  rF  rO  r^  rf  ro  ru  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r  r   r&  r;  rK  rR  rX  r`  rk  ru  r{  r  r  r  r  r  r  r  r  r  r  r  r  r  r
	  r	  r	  r-	  r7	  rG	  rP	  rW	  r`	  rl	  rt	  r	  r	  r	  r	  r	  r	  r	  r	  r	  r	  r	  r	  r 
  r
  r
  r!
  r-
  r4
  r;
  rB
  rI
  rQ
  r]
  rd
  rk
  rz
  r
  r`   r@   r>   <module>r
     s(   H # $ 7 7 	   l  l  l  l  l  l  l  l  l  l  l!Ki !KH<m9 <m~$M $MN);I );XY 8-	 -8I >'Y '8I &) &' '<"O9 "OJ3G	 3GlAii AiH%	 %8&WI &WR +i  +F /Y  /F79 7t$+I $+N#I #<"5i "5J-i -8!3i !3H:q	 :qz%'Y %'P 7	  7FEy ED -9  -F$K9 $KN =  =F 39  3F39 3@B_I B_J$;9 $;N?I ?DG_) G_TZ{ Z{zAI A@A_i A_H +  +FEUY EUP) >) &I 8&U &URi >y 8! !8 89 8)y )@4[) 4[n@uI @uFi B$CI $CN-Y -B) &I 8C C@i &#-) #-L9m	 9mx /)  /F!Ey !EHI 8)i )8E	 E@+y +B	 8) 89 8i 8) )8 +9  +F:GI :Gz%'i %'P%/) %/Pi 8i 8 86I 6r%/	 %/P% %8%9y %9P8a	 8av3] 3]l -Y  -FY 8 '	  'F5YY 5Yp /	  /F% %P%') %'P)=i )=X79 7@!=I !=H	 > /y  /FI &%!I %!PY >)i )89 & /I  /F5U) 5Up %i  %FY 8,A9 ,A^$9	 $9N-	 -@3y 3D<q	 <q~;qY ;q|17 17h) 8D{Y D{N'+) '+T +  +F%') %'P8gy 8gv4}i 4}n4qy 4qnI &&/) &/R79 7@3 3@y &-Y -@:Sy :SzCq	 CqL)	 )@(9y (9V)?Y )?X'E 'ET >i 8$Ey $EN?y ?@+Ii +I\% %8;sI ;s|(_) (_V$II $IN3) 3@) B /  /F&7) &7R B/U9 /Ud%Ii %IP#i #8F9 FB/E) /Ed+;i +;\+/y +/\! !B'?	 '?T-II -I` 8+3I +3\%EI %EP	 >9I 9@>{y >{B$Ey $EN<]	 <]~De) DeN9OI 9OxY{I Y{x!1y !1HSKy SKl +Y  +F/My /Md&?y &?RmmI mm`3y 3@#II #ILKS) KS\!7Y !7H#Iy #IL8}I 8}v2g) 2gj'Q9 'QT+]y +]\!A) !AH\{ \{~G_y G_TEi EiPisI isX2ei 2ej2WI 2Wj5k) 5kp%'9 %'P$I	 $IN)Ai )AX(YY (YV?i ?@1i) 1ih&Gi &GR/Y9 /Yd1Gy 1Gh -)  -F:ui :uz#) #8'	 '8/	 /@2q) 2qj /9  /FDE DEN-e	 -e`*Gy *GZ)Yi )YX 5	  5F&M9 &MR%I %8"/Y "/J 1i  1F$Ay $AN"3I "3J"/) "/J*ky *kZ4} 4}n2_ 2_j /Y  /F@E9 @EF+ +8/Ui /Ud#+	 #+L!i !B$CI $CN,] ,]^#5I #5L+ +@)Y )YX+] +]\)) )r@   