mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Add foursquare_type to Venue
This commit is contained in:
parent
ec0d6dd6e0
commit
25662748cf
@ -378,7 +378,8 @@ def parse_messages(
|
||||
),
|
||||
title=media.title,
|
||||
address=media.address,
|
||||
foursquare_id=media.venue_id or None
|
||||
foursquare_id=media.venue_id or None,
|
||||
foursquare_type=media.venue_type
|
||||
)
|
||||
elif isinstance(media, types.MessageMediaDocument):
|
||||
doc = media.document
|
||||
|
@ -35,12 +35,24 @@ class Venue(Object):
|
||||
foursquare_id (``str``, *optional*):
|
||||
Foursquare identifier of the venue.
|
||||
|
||||
foursquare_type (``str``, *optional*):
|
||||
Foursquare type of the venue.
|
||||
(For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
|
||||
|
||||
"""
|
||||
|
||||
ID = 0xb0700013
|
||||
|
||||
def __init__(self, location, title: str, address: str, foursquare_id: str = None):
|
||||
def __init__(
|
||||
self,
|
||||
location,
|
||||
title: str,
|
||||
address: str,
|
||||
foursquare_id: str = None,
|
||||
foursquare_type: str = None
|
||||
):
|
||||
self.location = location
|
||||
self.title = title
|
||||
self.address = address
|
||||
self.foursquare_id = foursquare_id
|
||||
self.foursquare_type = foursquare_type
|
||||
|
Loading…
x
Reference in New Issue
Block a user