mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 08:37:07 +01:00
parent
3afb0ae6c3
commit
e492d5b97b
1 changed files with 1 additions and 1 deletions
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in a new issue