From d58575b42870cee336642bd764da0974b2dcf17c Mon Sep 17 00:00:00 2001 From: yihong0618 Date: Mon, 18 Dec 2023 12:21:35 +0800 Subject: [PATCH] fix: map location wrong decorator is pass Signed-off-by: yihong0618 --- handlers/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handlers/__init__.py b/handlers/__init__.py index f359854..80912de 100644 --- a/handlers/__init__.py +++ b/handlers/__init__.py @@ -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