
    <Si                         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rddlmZmZ  G d	 d
e      Z G d de      Z G d de      Zy)zBFile generated by TLObjects' generator. All changes will be ERASED   )TLObject)	TLRequest    )OptionalListUnionTYPE_CHECKINGN)datetime)TypeChannelMessagesFilterTypeInputChannelc                   Z    e Zd ZdZdZdddddded	ed
ee   f
dZd Z	d Z
d Zed        Zy)GetChannelDifferenceRequestix=i]o)Nchannelr   filterr   ptslimitforcec                 J    || _         || _        || _        || _        || _        y)z
        :returns updates.ChannelDifference: Instance of either ChannelDifferenceEmpty, ChannelDifferenceTooLong, ChannelDifference.
        Nr   r   r   r   r   )selfr   r   r   r   r   s         b/var/www/OnlineNewsSite/project/venv/lib/python3.12/site-packages/telethon/tl/functions/updates.py__init__z$GetChannelDifferenceRequest.__init__   s'     

    c                 ~   K   |j                  |j                  | j                         d {         | _        y 7 wN)get_input_channelget_input_entityr   )r   clientutilss      r   resolvez#GetChannelDifferenceRequest.resolve   s-     ..V5L5LT\\5Z/Z[/Zs   *=;=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   )_r   r   r   r   r   )
isinstancer   r   to_dictr   r   r   r   r   s    r   r$   z#GetChannelDifferenceRequest.to_dict   sp    .1;DLL(1St||++-Y]YeYe/9$++x/Pdkk))+VZVaVa88ZZZZ
 	
r   c                 h   dj                  dt        j                  d| j                  | j                  du rdnd      | j                  j                         | j                  j                         t        j                  d| j                        t        j                  d| j                        f      S )Nr   s   x=<IFr      <i)	joinstructpackr   r   _bytesr   r   r   r%   s    r   r-   z"GetChannelDifferenceRequest._bytes(   s    xxKKDJJ$6$**:MqSTVLL!KK KKdhh'KKdjj)
  	r   c                     |j                         }t        |dz        }|j                         }|j                         }|j                         }|j                         } | |||||      S )Nr(   r   )read_intbooltgread_object)clsreaderflags_force_channel_filter_pts_limits           r   from_readerz'GetChannelDifferenceRequest.from_reader2   sc    !eai'')&&( "8GVSYZZr   r   )__name__
__module____qualname__CONSTRUCTOR_IDSUBCLASS_OF_IDintr   r0   r   r    r$   r-   classmethodr:    r   r   r   r      sm    NN 2 <W ^a jm v~  @D  wE \
 [ [r   r   c                   j    e Zd ZdZdZddedee   dedee   dee   d	ee   fd
Zd Z	d Z
ed        Zy)GetDifferenceRequesticit(H Nr   dateqts	pts_limitpts_total_limit	qts_limitc                 X    || _         || _        || _        || _        || _        || _        y)z
        :returns updates.Difference: Instance of either DifferenceEmpty, Difference, DifferenceSlice, DifferenceTooLong.
        Nr   rE   rF   rG   rH   rI   )r   r   rE   rF   rG   rH   rI   s          r   r   zGetDifferenceRequest.__init__B   s/     	"."r   c                     d| j                   | j                  | j                  | j                  | j                  | j
                  dS )NrD   )r"   r   rE   rF   rG   rH   rI   rK   r%   s    r   r$   zGetDifferenceRequest.to_dictM   s;    '88II88#33
 	
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        t        j                  d	| 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                        t        j                  d	| j                        | j
                  | j
                  du rdf      S t        j                  d	| j
                        f      S )
Nr   s   cr'   Fr      r(      r)   )
r*   r+   r,   rG   rH   rI   r   serialize_datetimerE   rF   r%   s    r   r-   zGetDifferenceRequest._bytesX   s   xxKKDNN$:dnnPU>Uq[\fjfzfz  gC  GK  G[  G[  _d  Gdab  jk  l  uy  uC  uC  uK  OS  O]  O]  af  Of  pq  lm  n  oKKdhh'>>)T^^u-DC6;;W[]a]k]kKl''/43G3G53PCW]WbWbcgimi}i}W~##DII.KKdhh'>>)T^^u-DC	
 	 		 LR;;W[]a]k]kKl	
 	 		r   c                 .   |j                         }|j                         }|dz  r|j                         }nd }|dz  r|j                         }nd }|j                         }|j                         }|dz  r|j                         }nd } | ||||||      S )NrN   r(   rO   rK   )r/   tgread_date)	r2   r3   r4   r8   
_pts_limit_pts_total_limit_date_qts
_qts_limits	            r   r:   z GetDifferenceRequest.from_readerd   s    ! 19*JJ19%0#""$ 19*JJt%TZYiu  A  	Ar   )NNN)r;   r<   r=   r>   r?   r@   r   r
   r   r$   r-   rA   r:   rB   r   r   rD   rD   >   s    NN	#C 	#x'9 	# 	#PXY\P] 	#u}  B  vC 	#  U]  ^a  Ub 	#	

 A Ar   rD   c                   0    e Zd ZdZdZd Zd Zed        Zy)GetStateRequestl   *[ i#c                 
    ddiS )Nr"   rY   rB   r%   s    r   r$   zGetStateRequest.to_dict~   s    "
 	
r   c                 $    dj                  d      S )Nr   )s   *)r*   r%   s    r   r-   zGetStateRequest._bytes   s    xx 
  	r   c                      |        S r   rB   )r2   r3   s     r   r:   zGetStateRequest.from_reader   s	    ur   N)	r;   r<   r=   r>   r?   r$   r-   rA   r:   rB   r   r   rY   rY   z   s*    NN


  r   rY   )__doc__tl.tlobjectr   r   typingr   r   r   r	   osr+   r
   tl.typesr   r   r   rD   rY   rB   r   r   <module>rb      sM    H # $ 7 7 	  G.[) .[b9A9 9Axi r   