o
    Fh                     @  sP   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 de	e
 Zd	S )
    )annotations)TYPE_CHECKINGAnyOptional   )ChatIdUnion   )TelegramMethodc                      sV   e Zd ZU dZeZdZded< 	 dZded< 	 e	r'ddd fddZ
  ZS   ZS )SetChatDescriptiona0  
    Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns :code:`True` on success.

    Source: https://core.telegram.org/bots/api#setchatdescription
    setChatDescriptionr   chat_idNOptional[str]description)r   $_SetChatDescription__pydantic_kwargsr   returnNonec                  s   t  jd||d| d S )N)r   r    )super__init__)__pydantic__self__r   r   r   	__class__r   W/var/www/html/venv/lib/python3.10/site-packages/aiogram/methods/set_chat_description.pyr      s   zSetChatDescription.__init__)r   r   r   r   r   r   r   r   )__name__
__module____qualname____doc__bool__returning____api_method____annotations__r   r   r   __classcell__r   r   r   r   r
   	   s   
 r
   N)
__future__r   typingr   r   r   typesr   baser	   r   r
   r   r   r   r   <module>   s
    