mirror of
				https://github.com/cdryzun/tg_bot_collections.git
				synced 2025-11-04 08:46:44 +08:00 
			
		
		
		
	@ -220,6 +220,7 @@ if CHATGPT_API_KEY:
 | 
			
		||||
        bot.register_message_handler(
 | 
			
		||||
            chatgpt_photo_handler,
 | 
			
		||||
            content_types=["photo"],
 | 
			
		||||
            func=lambda m: m.caption and m.caption.startswith(("gpt:", "/gpt")),
 | 
			
		||||
            func=lambda m: m.caption
 | 
			
		||||
            and m.caption.startswith(("gpt:", "/gpt", "gpt_pro:", "/gpt_pro")),
 | 
			
		||||
            pass_bot=True,
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user