
    i
                     `    d Z ddlmZ ddlmZ ddlmZmZ  G d deeeef                   ZdS )z1This module contains the PollAnswerHandler class.    )Update)BaseHandler)CCTRTc                   &    e Zd ZdZdZdedefdZdS )PollAnswerHandlera3  Handler class to handle Telegram updates that contain a
    :attr:`poll answer <telegram.Update.poll_answer>`.

    Warning:
        When setting :paramref:`block` to :obj:`False`, you cannot rely on adding custom
        attributes to :class:`telegram.ext.CallbackContext`. See its docs for more info.

    Examples:
        :any:`Poll Bot <examples.pollbot>`

    Args:
        callback (:term:`coroutine function`): The callback function for this handler. Will be
            called when :meth:`check_update` has determined that an update should be processed by
            this handler. Callback signature::

                async def callback(update: Update, context: CallbackContext)

            The return value of the callback is usually ignored except for the special case of
            :class:`telegram.ext.ConversationHandler`.
        block (:obj:`bool`, optional): Determines whether the return value of the callback should
            be awaited before processing the next handler in
            :meth:`telegram.ext.Application.process_update`. Defaults to :obj:`True`.

            .. seealso:: :wiki:`Concurrency`

    Attributes:
        callback (:term:`coroutine function`): The callback function for this handler.
        block (:obj:`bool`): Determines whether the callback will run in a blocking way..

     updatereturnc                 T    t          |t                    ot          |j                  S )zDetermines whether an update should be passed to this handler's :attr:`callback`.

        Args:
            update (:class:`telegram.Update` | :obj:`object`): Incoming update.

        Returns:
            :obj:`bool`

        )
isinstancer   boolpoll_answer)selfr
   s     h/Users/shanyulin/my-agent/.venv/lib/python3.11/site-packages/telegram/ext/_handlers/pollanswerhandler.pycheck_updatezPollAnswerHandler.check_update<   s$     &&))Fd63E.F.FF    N)__name__
__module____qualname____doc__	__slots__objectr   r   r	   r   r   r   r      sO         > I
G6 
Gd 
G 
G 
G 
G 
G 
Gr   r   N)	r   telegramr   "telegram.ext._handlers.basehandlerr   telegram.ext._utils.typesr   r   r   r	   r   r   <module>r      s   & 8 7       : : : : : : - - - - - - - -,G ,G ,G ,G ,GFCO4 ,G ,G ,G ,G ,Gr   