o
    Uj¤  ã                   @  sP   d dl mZ d dl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é   )Ú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r<ddddd
œd‡ fdd„Z‡  ZS ‡  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
    Ú
getUpdatesNú
int | NoneÚoffsetÚlimitÚtimeoutúlist[str] | NoneÚallowed_updates©r   r   r   r   Ú_GetUpdates__pydantic_kwargsr   ÚreturnÚNonec                  s    t ƒ jd||||dœ|¤Ž d S )Nr   © )ÚsuperÚ__init__)Ú__pydantic__self__r   r   r   r   r   ©Ú	__class__r   úT/opt/telega-widget/.venv/lib/python3.10/site-packages/aiogram/methods/get_updates.pyr   &   s   ü
ûzGetUpdates.__init__)r   r   r   r   r   r   r   r   r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úlistr   Ú__returning__Ú__api_method__r   Ú__annotations__r   r   r   r   r   Ú__classcell__r   r   r   r   r	   	   s&   
 úür	   N)Ú
__future__r   Útypingr   r   Útypesr   Úbaser   r    r	   r   r   r   r   Ú<module>   s
    