Ë
    :É„jí  ã                   ó8   — d dl Z d dlmZ d dlmZ  G d„ d«      Zy)é    N)ÚDisconnectHandler)ÚHandlerc                   ó$   — e Zd Z	 ddddddefd„Zy)	ÚRemoveHandlerÚselfzpyrogram.ClientÚhandlerr   Úgroupc                 ól   — t        |t        «      rd| _        y| j                  j	                  ||«       y)aÁ  Remove a previously-registered update handler.

        Make sure to provide the right group where the handler was added in. You can use the return value of the
        :meth:`~pyrogram.Client.add_handler` method, a tuple of *(handler, group)*, and pass it directly.

        Parameters:
            handler (``Handler``):
                The handler to be removed.

            group (``int``, *optional*):
                The group identifier, defaults to 0.

        Example:
            .. code-block:: python

                from pyrogram import Client
                from pyrogram.handlers import MessageHandler

                async def hello(client, message):
                    print(message)

                app = Client("my_account")

                handler = app.add_handler(MessageHandler(hello))

                # Starred expression to unpack (handler, group)
                app.remove_handler(*handler)

                app.run()
        N)Ú
isinstancer   Údisconnect_handlerÚ
dispatcherÚremove_handler)r   r   r	   s      ú`/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/utilities/remove_handler.pyr   zRemoveHandler.remove_handler   s,   € ôF �gÔ0Ô1Ø&*ˆDÕ#à�O‰O×*Ñ*¨7°EÕ:ó    N)r   )Ú__name__Ú
__module__Ú__qualname__Úintr   © r   r   r   r      s&   „ ð ñ&;Øð&;àð&;ð ô&;r   r   )ÚpyrogramÚpyrogram.handlersr   Úpyrogram.handlers.handlerr   r   r   r   r   ú<module>r      s   ðó( Ý /Ý -÷';ò ';r   