2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-24 19:07:57 +00:00

Add parameter foursquare_type to send_venue method

This commit is contained in:
Dan 2018-08-14 14:36:01 +02:00
parent 25662748cf
commit 49e2e529e1

View File

@ -28,6 +28,7 @@ class SendVenue(BaseClient):
title: str, title: str,
address: str, address: str,
foursquare_id: str = "", foursquare_id: str = "",
foursquare_type: str = "",
disable_notification: bool = None, disable_notification: bool = None,
reply_to_message_id: int = None, reply_to_message_id: int = None,
reply_markup=None): reply_markup=None):
@ -54,6 +55,10 @@ class SendVenue(BaseClient):
foursquare_id (``str``, *optional*): foursquare_id (``str``, *optional*):
Foursquare identifier of the venue. Foursquare identifier of the venue.
foursquare_type (``str``, *optional*):
Foursquare type of the venue, if known.
(For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
disable_notification (``bool``, *optional*): disable_notification (``bool``, *optional*):
Sends the message silently. Sends the message silently.
Users will receive a notification with no sound. Users will receive a notification with no sound.
@ -83,7 +88,7 @@ class SendVenue(BaseClient):
address=address, address=address,
provider="", provider="",
venue_id=foursquare_id, venue_id=foursquare_id,
venue_type="" venue_type=foursquare_type
), ),
message="", message="",
silent=disable_notification or None, silent=disable_notification or None,