
    dh'                    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   )ChatIdUnion   )TelegramMethodc                  b     e Zd ZU dZeZdZded<   	 ded<   	 er	 	 	 	 	 	 	 	 d fdZ	 xZ
S  xZ
S )	DeleteMessagea5  
    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* administrator right in a supergroup or a channel, it can delete any message there.

    - If the bot has *can_manage_direct_messages* administrator right in a channel, it can delete any message in the corresponding direct messages chat.

    Returns :code:`True` on success.

    Source: https://core.telegram.org/bots/api#deletemessage
    deleteMessager   chat_idint
message_idc               *    t        |   d||d| y )N)r   r    )super__init__)__pydantic__self__r   r   _DeleteMessage__pydantic_kwargs	__class__s       X/var/www/netwell/bot/venv/lib/python3.12/site-packages/aiogram/methods/delete_message.pyr   zDeleteMessage.__init__0   s     GYWYGXY    )r   r   r   r   r   r   returnNone)__name__
__module____qualname____doc__bool__returning____api_method____annotations__r   r   __classcell__)r   s   @r   r   r   	   s]    4 M$NzO-	Z,7	ZEH	Z_b	Z	Z 	Z	 r   r   N)
__future__r   typingr   r   typesr   baser	   r   r   r   r   r   <module>r(      s$    " %   .ZN4( .Zr   