a
    y{JhW  ã                   @  sD   d dl mZ d dlmZmZmZ ddlmZ G dd„ dee ƒZ	dS )é    )Úannotations)ÚTYPE_CHECKINGÚAnyÚOptionalé   )ÚTelegramMethodc                	      s„   e Zd ZU dZeZdZded< dZded< dZ	ded	< dZ
ded
< dZded< er|dddddœddddddddœ‡ fdd„Z‡  ZS )ÚAnswerCallbackQuerya¡  
    Use this method to send answers to callback queries sent from `inline keyboards <https://core.telegram.org/bots/features#inline-keyboards>`_. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, :code:`True` is returned.

     Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via `@BotFather <https://t.me/botfather>`_ and accept the terms. Otherwise, you may use links like :code:`t.me/your_bot?start=XXXX` that open your bot with a parameter.

    Source: https://core.telegram.org/bots/api#answercallbackquery
    ZanswerCallbackQueryÚstrÚcallback_query_idNzOptional[str]ÚtextzOptional[bool]Ú
show_alertÚurlzOptional[int]Ú
cache_time)r   r   r   r   r   ÚNone)r
   r   r   r   r   Ú%_AnswerCallbackQuery__pydantic_kwargsÚreturnc                  s"   t ƒ jf |||||dœ|¤Ž d S )N)r
   r   r   r   r   )ÚsuperÚ__init__)Z__pydantic__self__r
   r   r   r   r   r   ©Ú	__class__© úW/var/www/shaz/venv/lib/python3.9/site-packages/aiogram/methods/answer_callback_query.pyr   #   s    ûúzAnswerCallbackQuery.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚboolZ__returning__Z__api_method__Ú__annotations__r   r   r   r   r   r   Ú__classcell__r   r   r   r   r      s   
ùr   N)
Ú
__future__r   Útypingr   r   r   Úbaser   r   r   r   r   r   r   Ú<module>   s   