a
    y{Jh                     @  s   d dl mZ d dlmZmZmZmZmZ d dlm	Z	 ddl
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZ ddl m!Z! G dd	 d	e!e" Z#d
S )    )annotations)TYPE_CHECKINGAnyListOptionalUnion)Field   )InlineQueryResultArticleInlineQueryResultAudioInlineQueryResultCachedAudioInlineQueryResultCachedDocumentInlineQueryResultCachedGifInlineQueryResultCachedMpeg4GifInlineQueryResultCachedPhotoInlineQueryResultCachedStickerInlineQueryResultCachedVideoInlineQueryResultCachedVoiceInlineQueryResultContactInlineQueryResultDocumentInlineQueryResultGameInlineQueryResultGifInlineQueryResultLocationInlineQueryResultMpeg4GifInlineQueryResultPhotoInlineQueryResultsButtonInlineQueryResultVenueInlineQueryResultVideoInlineQueryResultVoice   )TelegramMethodc                      s   e Zd ZU dZeZdZded< ded< dZded	< dZ	d
ed< dZ
ded< dZded< edddidZded< edddidZded< erddddddddddd
ddddddd
 fddZ  ZS )AnswerInlineQueryz
    Use this method to send answers to an inline query. On success, :code:`True` is returned.

    No more than **50** results per query are allowed.

    Source: https://core.telegram.org/bots/api#answerinlinequery
    ZanswerInlineQuerystrinline_query_ida+  List[Union[InlineQueryResultCachedAudio, InlineQueryResultCachedDocument, InlineQueryResultCachedGif, InlineQueryResultCachedMpeg4Gif, InlineQueryResultCachedPhoto, InlineQueryResultCachedSticker, InlineQueryResultCachedVideo, InlineQueryResultCachedVoice, InlineQueryResultArticle, InlineQueryResultAudio, InlineQueryResultContact, InlineQueryResultGame, InlineQueryResultDocument, InlineQueryResultGif, InlineQueryResultLocation, InlineQueryResultMpeg4Gif, InlineQueryResultPhoto, InlineQueryResultVenue, InlineQueryResultVideo, InlineQueryResultVoice]]resultsNzOptional[int]
cache_timezOptional[bool]is_personalzOptional[str]next_offsetz"Optional[InlineQueryResultsButton]button
deprecatedT)Zjson_schema_extraswitch_pm_parameterswitch_pm_text)r%   r&   r'   r(   r*   r+   r   None)
r#   r$   r%   r&   r'   r(   r*   r+   #_AnswerInlineQuery__pydantic_kwargsreturnc          
        s(   t  jf ||||||||d|	 d S )N)r#   r$   r%   r&   r'   r(   r*   r+   )super__init__)
Z__pydantic__self__r#   r$   r%   r&   r'   r(   r*   r+   r-   	__class__ U/var/www/shaz/venv/lib/python3.9/site-packages/aiogram/methods/answer_inline_query.pyr0   _   s    (	zAnswerInlineQuery.__init__)__name__
__module____qualname____doc__boolZ__returning__Z__api_method____annotations__r%   r&   r'   r(   r   r*   r+   r   r0   __classcell__r3   r3   r1   r4   r!   !   s&   
 r!   N)$
__future__r   typingr   r   r   r   r   Zpydanticr   typesr
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   baser    r9   r!   r3   r3   r3   r4   <module>   s
   \