
    ;Sis                     2    d dl mZ ddlmZ  G d de      Zy)   )EventBuilder   )utilsc                   H     e Zd ZdZddd fdZd Zed	d       Zd Z xZ	S )
Rawa^  
    Raw events are not actual events. Instead, they are the raw
    :tl:`Update` object that Telegram sends. You normally shouldn't
    need these.

    Args:
        types (`list` | `tuple` | `type`, optional):
            The type or types that the :tl:`Update` instance must be.
            Equivalent to ``if not isinstance(update, types): return``.

    Example
        .. code-block:: python

            from telethon import events

            @client.on(events.Raw)
            async def handler(update):
                # Print all incoming updates
                print(update.stringify())
    Nfuncc                @   t         |   |       |sd | _        y t        j                  |      s2t        |t              st        dj                  |            || _        y t        d |D              st        dj                  |            t        |      | _        y )Nr   zInvalid input type given: {}c              3   <   K   | ]  }t        |t                y wN)
isinstancetype).0xs     X/var/www/OnlineNewsSite/project/venv/lib/python3.12/site-packages/telethon/events/raw.py	<genexpr>zRaw.__init__.<locals>.<genexpr>$   s     :qz!T*:s   zInvalid input types given: {})super__init__typesr   is_list_liker   r   	TypeErrorformatalltuple)selfr   r	   	__class__s      r   r   zRaw.__init__   s    d#DJ##E*eT* > E Ee LMMDJ:E:: ? F Fu MNNuDJ    c                    K   d| _         y w)NT)resolved)r   clients     r   resolvezRaw.resolve)   s     s   	c                     |S r    )clsupdateothersself_ids       r   buildz	Raw.build,   s    r   c                     | j                   rt        || j                         r| j                  r| j                  |      S |S y r   )r   r   r	   )r   events     r   filterz
Raw.filter0   s6    zzZtzz:yyyy''L	 ;r   r   )NN)
__name__
__module____qualname____doc__r   r!   classmethodr(   r+   __classcell__)r   s   @r   r   r      s2    (&4 &  r   r   N)commonr    r   r   r#   r   r   <module>r4      s      0, 0r   