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:
parent
25662748cf
commit
49e2e529e1
@ -28,6 +28,7 @@ class SendVenue(BaseClient):
|
||||
title: str,
|
||||
address: str,
|
||||
foursquare_id: str = "",
|
||||
foursquare_type: str = "",
|
||||
disable_notification: bool = None,
|
||||
reply_to_message_id: int = None,
|
||||
reply_markup=None):
|
||||
@ -54,6 +55,10 @@ class SendVenue(BaseClient):
|
||||
foursquare_id (``str``, *optional*):
|
||||
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*):
|
||||
Sends the message silently.
|
||||
Users will receive a notification with no sound.
|
||||
@ -83,7 +88,7 @@ class SendVenue(BaseClient):
|
||||
address=address,
|
||||
provider="",
|
||||
venue_id=foursquare_id,
|
||||
venue_type=""
|
||||
venue_type=foursquare_type
|
||||
),
|
||||
message="",
|
||||
silent=disable_notification or None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user