o
    @j¤  ã                   @  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ÚUnioné   )ÚTelegramMethodc                      sL   e Zd ZU dZeZdZded< 	 ded< 	 er"d‡ fdd„Z	‡  Z
S ‡  Z
S )ÚDeleteMessagea’  
    Use this method to delete a message, including service messages, with the following limitations:

    - A message can only be deleted if it was sent less than 48 hours ago.

    - Service messages about a supergroup, channel, or forum topic creation can't be deleted.

    - A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.

    - Bots can delete outgoing messages in private chats, groups, and supergroups.

    - Bots can delete incoming messages in private chats.

    - Bots granted *can_post_messages* permissions can delete outgoing messages in channels.

    - If the bot is an administrator of a group, it can delete any message there.

    - If the bot has *can_delete_messages* permission in a supergroup or a channel, it can delete any message there.

    Returns :code:`True` on success.

    Source: https://core.telegram.org/bots/api#deletemessage
    ÚdeleteMessageúUnion[int, str]Úchat_idÚintÚ
message_idÚ_DeleteMessage__pydantic_kwargsr   ÚreturnÚNonec                  s   t ƒ jd||dœ|¤Ž d S )N)r   r   © )ÚsuperÚ__init__)Ú__pydantic__self__r   r   r   ©Ú	__class__r   úm/var/www/www-root/data/www/ai-bot.pdev.uz/venv/lib/python3.10/site-packages/aiogram/methods/delete_message.pyr   -   s   zDeleteMessage.__init__)r   r
   r   r   r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚboolÚ__returning__Ú__api_method__Ú__annotations__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    