python-telegram-bot/telegram/location.py
Leandro Toledo b2a4d4f5fc PEP8
2015-07-08 21:58:13 -03:00

14 lines
361 B
Python

#!/usr/bin/env python
class Location(object):
def __init__(self,
longitude,
latitude):
self.longitude = longitude
self.latitude = latitude
@staticmethod
def de_json(data):
return Location(longitude=data.get('longitude', None),
latitude=data.get('latitude', None))