From e492d5b97bd4c720b7a46c911289c2b361db5a31 Mon Sep 17 00:00:00 2001 From: Marchello00 Date: Fri, 23 Aug 2019 22:13:29 +0300 Subject: [PATCH] Fix send_location() - latitude may be 0 (#1437) Fixes #1435 --- telegram/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/bot.py b/telegram/bot.py index f1f9f4d06..d3e151e58 100644 --- a/telegram/bot.py +++ b/telegram/bot.py @@ -1030,7 +1030,7 @@ class Bot(TelegramObject): """ url = '{0}/sendLocation'.format(self.base_url) - if not (all([latitude, longitude]) or location): + if not ((latitude is not None and longitude is not None) or location): raise ValueError("Either location or latitude and longitude must be passed as" "argument.")