Ë
    ö­¦jÞ  ã                  óT   — 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ee	   «      Z
y	)
é    )Úannotations)ÚTYPE_CHECKINGÚAnyé   )Ú	InputFileé   )ÚTelegramMethodc                  óØ   ‡ — 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<   	 dZded<   	 dZded<   	 er#dddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dˆ fd„Zˆ xZS ˆ xZS )Ú
SetWebhooka¼  
    Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized :class:`aiogram.types.update.Update`. In case of an unsuccessful request (a request with response `HTTP status code <https://en.wikipedia.org/wiki/List_of_HTTP_status_codes>`_ different from :code:`2XY`), we will repeat the request and give up after a reasonable amount of attempts. Returns :code:`True` on success.
    If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter *secret_token*. If specified, the request will contain a header 'X-Telegram-Bot-Api-Secret-Token' with the secret token as content.

     **Notes**

     **1.** You will not be able to receive updates using :class:`aiogram.methods.get_updates.GetUpdates` for as long as an outgoing webhook is set up.

     **2.** To use a self-signed certificate, you need to upload your `public key certificate <https://core.telegram.org/bots/self-signed>`_ using *certificate* parameter. Please upload as InputFile, sending a String will not work.

     **3.** Ports currently supported *for webhooks*: **443, 80, 88, 8443**.
     If you're having any trouble setting up webhooks, please check out this `amazing guide to webhooks <https://core.telegram.org/bots/webhooks>`_.

    Source: https://core.telegram.org/bots/api#setwebhook
    Ú
setWebhookÚstrÚurlNúInputFile | NoneÚcertificateú
str | NoneÚ
ip_addressú
int | NoneÚmax_connectionsúlist[str] | NoneÚallowed_updatesúbool | NoneÚdrop_pending_updatesÚsecret_token)r   r   r   r   r   r   c               ó4   •— t        ‰	| �  d|||||||dœ|¤Ž y )N)r   r   r   r   r   r   r   © )ÚsuperÚ__init__)
Ú__pydantic__self__r   r   r   r   r   r   r   Ú_SetWebhook__pydantic_kwargsÚ	__class__s
            €úN/var/www/html/venv/lib/python3.12/site-packages/aiogram/methods/set_webhook.pyr   zSetWebhook.__init__0   s6   ø€ ô  ‰GÑð 	ØØ'Ø%Ø /Ø /Ø%9Ø)ñ	ð $ó	ó    )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ÚreturnÚNone)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚboolÚ__returning__Ú__api_method__Ú__annotations__r   r   r   r   r   r   r   r   Ú__classcell__)r    s   @r!   r   r   	   sù   ø… ñð  €MØ!€Nà	ƒHØYØ$(€KÐ!Ó(ð wØ!€J�
Ó!ØyØ"&€O�ZÓ&ð qØ(,€OÐ%Ó,ð ]Ø(,Ð˜+Ó,Ø7Ø#€L�*Ó#ð jáð -1Ø%)Ø*.Ø04Ø04Ø'+ñ	ð ð	ð *ð		ð
 #ð	ð (ð	ð .ð	ð #.ð	ð %ð	ð "%ð	ð ÷	ñ 	ó	 r"   r   N)Ú
__future__r   Útypingr   r   Útypesr   Úbaser	   r)   r   r   r"   r!   ú<module>r2      s$   ðÝ "ç %å Ý  ô@� Ñ%õ @r"   