Skip to content

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

@kercos

Description

@kercos

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):

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions