o
    FÆhW  ã                   @  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‡ fdd„Z‡  ZS ‡  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
    ÚanswerCallbackQueryÚstrÚcallback_query_idNúOptional[str]ÚtextúOptional[bool]Ú
show_alertÚurlúOptional[int]Ú
cache_time)r   r   r   r   Ú%_AnswerCallbackQuery__pydantic_kwargsr   ÚreturnÚNonec                  s"   t ƒ jd|||||dœ|¤Ž d S )N)r   r   r   r   r   © )ÚsuperÚ__init__)Ú__pydantic__self__r   r   r   r   r   r   ©Ú	__class__r   úX/var/www/html/venv/lib/python3.10/site-packages/aiogram/methods/answer_callback_query.pyr   #   s   û
úzAnswerCallbackQuery.__init__)r   r
   r   r   r   r   r   r   r   r   r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚboolÚ__returning__Ú__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    