Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_location(update_id):
- updates = get_updates(update_id+1)
- location = get_last(updates)['message']['location']
- chat_id,text,update_id = get_last_id_text(updates)
- lat = str(location['latitude'])
- lon = str(location['longitude'])
- return lat,lon,update_id
- lat,lon,update_id = get_location(update_id) # lat, lon - координаты
Advertisement
Add Comment
Please, Sign In to add comment