a
    :¶gÊ  ã                   @  sT   d dl mZ d dlmZmZmZ ddlmZ ddlm	Z	 G dd„ de	e
e  ƒZd	S )
é    )Úannotations)ÚTYPE_CHECKINGÚAnyÚOptionalé   )ÚUpdateé   )ÚTelegramMethodc                      s~   e Zd ZU dZee ZdZdZde	d< dZ
de	d< dZde	d< dZde	d	< ervddddd
œdddddddœ‡ fdd„Z‡  ZS )Ú
GetUpdatesaÑ  
    Use this method to receive incoming updates using long polling (`wiki <https://en.wikipedia.org/wiki/Push_technology#Long_polling>`_). Returns an Array of :class:`aiogram.types.update.Update` objects.

     **Notes**

     **1.** This method will not work if an outgoing webhook is set up.

     **2.** In order to avoid getting duplicate updates, recalculate *offset* after each server response.

    Source: https://core.telegram.org/bots/api#getupdates
    Z
getUpdatesNzOptional[int]ÚoffsetÚlimitÚtimeoutzOptional[list[str]]Úallowed_updates©r   r   r   r   r   ÚNone)r   r   r   r   Ú_GetUpdates__pydantic_kwargsÚreturnc                  s    t ƒ jf ||||dœ|¤Ž d S )Nr   )ÚsuperÚ__init__)Z__pydantic__self__r   r   r   r   r   ©Ú	__class__© úx/var/www/vosh/data/www/fastworkle.ru/webshop-tgbot-v.1.0/venv/lib/python3.9/site-packages/aiogram/methods/get_updates.pyr   &   s    üûzGetUpdates.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úlistr   Z__returning__Z__api_method__r   Ú__annotations__r   r   r   r   r   Ú__classcell__r   r   r   r   r
   	   s   
úr
   N)Ú
__future__r   Útypingr   r   r   Útypesr   Úbaser	   r   r
   r   r   r   r   Ú<module>   s   