Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem when when sending 0.0, 0.0 as latitude and longitude #1435

Closed
kercos opened this issue Jul 5, 2019 · 1 comment
Closed

problem when when sending 0.0, 0.0 as latitude and longitude #1435

kercos opened this issue Jul 5, 2019 · 1 comment

Comments

@kercos
Copy link

kercos commented Jul 5, 2019

Steps to reproduce

BOT.send_location(chat_id = TEST_CHAT_ID, latitude=0, longitude=0)

Expected behaviour

Sending the location of the north pole

Actual behaviour

ValueError: Either location or latitude and longitude must be passed asargument.

Suggestion on how to solve

Do not use all function in

if not (all([latitude, longitude]) or location):

@Eldinnie
Copy link
Member

Eldinnie commented Jul 5, 2019

hmm,
I think we never considered that 0 is a valid alt/long.
Needs fixing, thanks for reporting

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants