d_skat

Untitled

May 9th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. def get_location(update_id):
  2.     updates = get_updates(update_id+1)
  3.     location = get_last(updates)['message']['location']
  4.     chat_id,text,update_id = get_last_id_text(updates)
  5.     lat = str(location['latitude'])
  6.     lon = str(location['longitude'])
  7.     return lat,lon,update_id
  8. lat,lon,update_id = get_location(update_id)  # lat, lon - координаты
Advertisement
Add Comment
Please, Sign In to add comment