Ë
    :É„j1  ã                   óD   — d dl Z d dl mZmZmZ d dlmZmZ  G d„ d«      Zy)é    N)ÚrawÚtypesÚutils)ÚUnionÚListc                   ó^   — e Zd Z	 	 	 	 ddddeeef   deded   ded	   d
ededeedf   fd„Zy)ÚSendTodoNÚselfzpyrogram.ClientÚchat_idÚtitleÚtasksztypes.InputTodoTaskÚentitiesztypes.MessageEntityÚ
can_appendÚcan_completeÚ
parse_modec              ƒ   óØ  K  — t        j                  | |||«      ƒ d{  –—† j                  «       \  }}g }t        |«      D ]   \  }	}
t        j                  | |
j                  ||
j
                  «      ƒ d{  –—† j                  «       \  }}|j                  t        j                  j                  |	dz   t        j                  j                  ||xs g ¬«      ¬«      «       Œ¢ | j                  t        j                  j                  j                  | j                  |«      ƒ d{  –—† d| j!                  «       t        j                  j#                  t        j                  j%                  t        j                  j                  ||xs g ¬«      |||¬«      ¬«      ¬«      «      ƒ d{  –—† }|j&                  D �]  }	t)        |	t        j                  j*                  t        j                  j,                  t        j                  j.                  t        j                  j0                  f«      sŒut        j2                  j5                  | |	j6                  |j8                  D �	ci c]  }	|	j:                  |	“Œ c}	|j<                  D �	ci c]  }	|	j:                  |	“Œ c}	t)        	t        j                  j.                  «      ¬	«      ƒ d{  –—† c S  y7 �Œ´7 �Œ_7 �Œ²7 �Œ1c c}	w c c}	w 7 Œ­w)
aï  Send a todo list to a chat.

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier for the target chat or username of the target channel.

            title (``str``):
                Title of the todo list.

            tasks (List of :obj:`~pyrogram.types.TodoTask`):
                List of tasks in the todo list.

            entities (List of :obj:`~pyrogram.types.MessageEntity`, *optional*):
                Entities in the title of the todo list.

            can_append (``bool``, *optional*):
                True, if other users can append tasks to this todo list.

            can_complete (``bool``, *optional*):
                True, if other users can complete tasks in this todo list.
        Né   )Útextr   )Úidr   Ú )r   ÚlistÚothers_can_appendÚothers_can_complete)Útodo)ÚpeerÚmessageÚ	random_idÚmedia)Úis_scheduled)r   Úparse_text_entitiesÚvaluesÚ	enumerater   r   Úappendr   r   ÚTodoItemÚTextWithEntitiesÚinvokeÚ	functionsÚmessagesÚ	SendMediaÚresolve_peerÚrnd_idÚInputMediaTodoÚTodoListÚupdatesÚ
isinstanceÚUpdateNewMessageÚUpdateNewChannelMessageÚUpdateNewScheduledMessageÚUpdateBotNewBusinessMessageÚMessageÚ_parser   Úusersr   Úchats)r
   r   r   r   r   r   r   r   Ú
tasks_listÚiÚtaskÚ
task_titleÚtask_entitiesÚrs                 úZ/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/messages/send_todo.pyÚ	send_todozSendTodo.send_todo   sj  è ø€ ô> "'×!:Ñ!:¸4ÀÈ
ÐT\Ó!]×]×eÑeÓg‰ˆˆxØˆ
Ü  Ó'ò 
	‰GˆAˆtÜ/4×/HÑ/HÈÈtÏzÉzÐ[eÐgk×gtÑgtÓ/u×)u×(}Ñ(}Ó(Ñ%ˆJ˜Ø×ÑÜ—	‘	×"Ñ"Ø˜1‘uÜŸ)™)×4Ñ4Ø'Ø!.Ò!4°"ð 5ó ð #ó õð
	ð —+‘+Ü�M‰M×"Ñ"×,Ñ,Ø×,Ñ,¨WÓ5×5ØØŸ+™+›-Ü—i‘i×.Ñ.ÜŸ™×+Ñ+Ü!Ÿi™i×8Ñ8Ø!&Ø%-¢^°ð 9ó ð (Ø*4Ø,8ð ,ó ð /ó 
ð	 -ó ó
÷ 
ˆð$ —‘ó 
	ˆAÜ˜!œcŸi™i×8Ñ8Ü!Ÿi™i×?Ñ?Ü!Ÿi™i×AÑAÜ!Ÿi™i×CÑCðEõ Fô #Ÿ]™]×1Ñ1Ø˜!Ÿ)™)Ø&'§g¡gÖ. �Q—T‘T˜1‘WÒ.Ø&'§g¡gÖ. �Q—T‘T˜1‘WÒ.Ü!+¨A¬s¯y©y×/RÑ/RÓ!Sð	 2ó ÷ ò ñ
	ðA ^ùð *vùð 6ùð
ûò2 /ùÚ.ðúsy   ‚K*žKŸAK*Á6KÁ7B/K*Ä&KÄ'BK*Æ*KÆ+BK*È03K*É#KÉ7K*ÊK#Ê.K*Ë	K(Ë
	K*ËK*ËK*ËK*ËK*)NFFN)	Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrr   Úboolr?   © ó    r>   r	   r	      s‡   „ ð 15Ø Ø"Ø'+ñIØðIà�s˜C�x‘ðIð ðIð Ð)Ñ*ð	Ið
 Ð,Ñ-ðIð ðIð ðIð ˜#˜t˜)Ñ$ôIrG   r	   )Úpyrogramr   r   r   Útypingr   r   r	   rF   rG   r>   ú<module>rJ      s   ðó& ç &Ñ &ß ÷Jò JrG   