o
    fh'                     @   s,   d dl mZ d dlmZmZmZ dd ZdS )    GetMessagesRequest)setMailPostTelegramsetMailPostVK   setСlipTikTokc                    s   | j jj| j jjsd S | j jjj fdd
 	
f
dd} 
fdd} 
fdd}h d	}h d
}dh}|v r_| I d H  d S |v rk| I d H  d S |v rw| I d H  d S d S )Nc                    s    t | gdI d H S )N)channelidr   )r   )botreply_msg_id D/var/www/www-root/data/www/osiris0spin.ru/graber_bot/router_event.pyget_message   s   z+handle_channel_message.<locals>.get_messagec                     s4   I d H } t | 	 
I d H  d S N)r   message)
r	   	channel_1	channel_2	channel_3	channel_4chennel_targetr   	id_messegreply_toreply_to_messager   r   process_telegram   s   

z0handle_channel_message.<locals>.process_telegramc                     s6   	I d H } t |  	
I d H  d S r   )r   r   )r	   channel_id_1channel_id_2channel_id_3channel_id_4r   r   r   r   technical_uservk_1r   r   
process_vk   s   z*handle_channel_message.<locals>.process_vkc                     s,   I d H } t |  I d H  d S r   )r   r   )r	   r   r   r   r   r   r   r   process_tiktok#   s   z.handle_channel_message.<locals>.process_tiktok>   1t2t3t4t>   1v2v3v4v3T)original_updater   r   r   reply_to_msg_id)eventr   r   r   r   r   r	   r   r   r   r   r   r   r   r    r!   telegram_commandsvk_commandstiktok_commandsr   )r	   r   r   r   r   r   r   r   r   r   r   r   r
   r   r   r   r   r   handle_channel_message   s*   


 r1   N)telethon.tl.functions.channelsr   moduls.setMailPostr   r   r   r1   r   r   r   r   <module>   s    