mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-02-18 11:22:41 +01:00
14 lines
361 B
Python
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))
|