Fix send_location() - latitude may be 0 (#1437)

Fixes #1435
This commit is contained in:
Marchello00 2019-08-23 22:13:29 +03:00 committed by Noam Meltzer
parent 3afb0ae6c3
commit e492d5b97b

View file

@ -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.")