AIOG-T-71 new ChatLocation class

This commit is contained in:
Oleg A 2020-11-05 16:00:27 +03:00
parent bb156408cf
commit a3c481760b

View file

@ -0,0 +1,16 @@
from . import base
from . import fields
from .location import Location
class ChatLocation(base.TelegramObject):
"""
Represents a location to which a chat is connected.
https://core.telegram.org/bots/api#chatlocation
"""
location: Location = fields.Field()
address: base.String = fields.Field()
def __init__(self, location: Location, address: base.String):
super().__init__(location=location, address=address)