
    G˝ix                    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                       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
str | Nonebusiness_connection_idbool | None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         Y/home/leshdev/mybot/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()-J-d(,+, } 2604	 !	 		
 %/	 #.	 "%	 	 		 r   r   N)
__future__r   typingr   r   typesr   baser	   r#   r   r   r   r   <module>r,      s"    " %   *^D) *r   