mirror of
				https://github.com/cdryzun/tg_bot_collections.git
				synced 2025-11-04 08:46:44 +08:00 
			
		
		
		
	fix: map location wrong decorator is pass
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
		@ -44,6 +44,9 @@ def wrap_handler(handler: T, bot: TeleBot) -> T:
 | 
			
		||||
                m = message.caption = extract_prompt(
 | 
			
		||||
                    message.caption, bot.get_me().username
 | 
			
		||||
                )
 | 
			
		||||
            elif message.location and message.location.latitude is not None:
 | 
			
		||||
                # for location map handler just return
 | 
			
		||||
                return handler(message, *args, **kwargs)
 | 
			
		||||
            if not m:
 | 
			
		||||
                bot.reply_to(message, "Please provide info after start words.")
 | 
			
		||||
                return
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user