
    dh                    X    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e	e
         Zy	)
    )annotations)TYPE_CHECKINGAnyOptional   )ChatIdUnion   )TelegramMethodc                       e Zd ZU dZeZdZded<   	 ded<   	 dZded	<   	 dZ	d
ed<   	 e
rddd	 	 	 	 	 	 	 	 	 	 	 d fdZ xZS  xZS )PinChatMessagea  
    Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non-service messages can be pinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to pin messages in groups and channels respectively. Returns :code:`True` on success.

    Source: https://core.telegram.org/bots/api#pinchatmessage
    pinChatMessager   chat_idint
message_idNOptional[str]business_connection_idOptional[bool]disable_notification)r   r   c               .    t        |   d||||d| y )N)r   r   r   r    )super__init__)__pydantic__self__r   r   r   r    _PinChatMessage__pydantic_kwargs	__class__s         Z/var/www/netwell/bot/venv/lib/python3.12/site-packages/aiogram/methods/pin_chat_message.pyr   zPinChatMessage.__init__    s-     G %'=%9	
 $    )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   __classcell__)r   s   @r   r   r   	   s     M%NzO(,0M0d+/./ } 5937	 !	 		
 %2	 #1	 "%	 	 		 r   r   N)
__future__r   typingr   r   r   typesr   baser
   r$   r   r   r   r   <module>r-      s%    " / /   *^D) *r   