mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Add parameter foursquare_type to send_venue method
This commit is contained in:
parent
25662748cf
commit
49e2e529e1
1 changed files with 6 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue