a
    y{JhŒ  ã                   @  sT   d dl mZ d dlmZ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ÚUnioné   )Ú
ForumTopicé   )ÚTelegramMethodc                      sn   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
rfdddœdddd
dddœ‡ fdd„Z‡  ZS )ÚCreateForumTopicai  
    Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the *can_manage_topics* administrator rights. Returns information about the created topic as a :class:`aiogram.types.forum_topic.ForumTopic` object.

    Source: https://core.telegram.org/bots/api#createforumtopic
    ZcreateForumTopiczUnion[int, str]Úchat_idÚstrÚnameNzOptional[int]Ú
icon_colorzOptional[str]Úicon_custom_emoji_id)r   r   r   ÚNone)r   r   r   r   Ú"_CreateForumTopic__pydantic_kwargsÚreturnc                  s    t ƒ jf ||||dœ|¤Ž d S )N)r   r   r   r   )ÚsuperÚ__init__)Z__pydantic__self__r   r   r   r   r   ©Ú	__class__© úT/var/www/shaz/venv/lib/python3.9/site-packages/aiogram/methods/create_forum_topic.pyr       s    üûzCreateForumTopic.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Z__returning__Z__api_method__Ú__annotations__r   r   r   r   Ú__classcell__r   r   r   r   r   	   s   
	úr   N)Ú
__future__r   Útypingr   r   r   r   Útypesr   Úbaser
   r   r   r   r   r   Ú<module>   s   