Skip to content

Commit eecaa5f

Browse files
committed
Update Foursquare venue support.
1 parent 395cf87 commit eecaa5f

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

src/Entities/InlineQuery/InlineQueryResultVenue.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
* @method string getTitle() Title of the venue
4242
* @method string getAddress() Address of the venue
4343
* @method string getFoursquareId() Optional. Foursquare identifier of the venue if known
44+
* @method string getFoursquareType() Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
4445
* @method InlineKeyboard getReplyMarkup() Optional. Inline keyboard attached to the message
4546
* @method InputMessageContent getInputMessageContent() Optional. Content of the message to be sent instead of the venue
4647
* @method string getThumbUrl() Optional. Url of the thumbnail for the result
@@ -53,6 +54,7 @@
5354
* @method $this setTitle(string $title) Title of the venue
5455
* @method $this setAddress(string $address) Address of the venue
5556
* @method $this setFoursquareId(string $foursquare_id) Optional. Foursquare identifier of the venue if known
57+
* @method $this setFoursquareType(string $foursquare_type) Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
5658
* @method $this setReplyMarkup(InlineKeyboard $reply_markup) Optional. Inline keyboard attached to the message
5759
* @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the venue
5860
* @method $this setThumbUrl(string $thumb_url) Optional. Url of the thumbnail for the result

src/Entities/InputMessageContent/InputVenueMessageContent.php

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,28 @@
1919
*
2020
* <code>
2121
* $data = [
22-
* 'latitude' => 36.0338,
23-
* 'longitude' => 71.8601,
24-
* 'title' => '',
25-
* 'address' => '',
26-
* 'foursquare_id' => '',
22+
* 'latitude' => 36.0338,
23+
* 'longitude' => 71.8601,
24+
* 'title' => '',
25+
* 'address' => '',
26+
* 'foursquare_id' => '',
27+
* 'foursquare_type' => '',
2728
* ];
2829
* </code>
2930
*
30-
* @method float getLatitude() Latitude of the location in degrees
31-
* @method float getLongitude() Longitude of the location in degrees
32-
* @method string getTitle() Name of the venue
33-
* @method string getAddress() Address of the venue
34-
* @method string getFoursquareIdTitle() Optional. Foursquare identifier of the venue, if known
31+
* @method float getLatitude() Latitude of the location in degrees
32+
* @method float getLongitude() Longitude of the location in degrees
33+
* @method string getTitle() Name of the venue
34+
* @method string getAddress() Address of the venue
35+
* @method string getFoursquareId() Optional. Foursquare identifier of the venue, if known
36+
* @method string getFoursquareType() Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
3537
*
36-
* @method $this setLatitude(float $latitude) Latitude of the location in degrees
37-
* @method $this setLongitude(float $longitude) Longitude of the location in degrees
38-
* @method $this setTitle(string $title) Name of the venue
39-
* @method $this setAddress(string $address) Address of the venue
40-
* @method $this setFoursquareIdTitle(string $foursquare_id_title) Optional. Foursquare identifier of the venue, if known
38+
* @method $this setLatitude(float $latitude) Latitude of the location in degrees
39+
* @method $this setLongitude(float $longitude) Longitude of the location in degrees
40+
* @method $this setTitle(string $title) Name of the venue
41+
* @method $this setAddress(string $address) Address of the venue
42+
* @method $this setFoursquareId(string $foursquare_id) Optional. Foursquare identifier of the venue, if known
43+
* @method $this setFoursquareType(string $foursquare_type) Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
4144
*/
4245
class InputVenueMessageContent extends InlineEntity implements InputMessageContent
4346
{

src/Entities/Venue.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
*
1616
* @link https://core.telegram.org/bots/api#venue
1717
*
18-
* @method Location getLocation() Venue location
19-
* @method string getTitle() Name of the venue
20-
* @method string getAddress() Address of the venue
21-
* @method string getFoursquareId() Optional. Foursquare identifier of the venue
18+
* @method Location getLocation() Venue location
19+
* @method string getTitle() Name of the venue
20+
* @method string getAddress() Address of the venue
21+
* @method string getFoursquareId() Optional. Foursquare identifier of the venue
22+
* @method string getFoursquareType() Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
2223
*/
2324
class Venue extends Entity
2425
{

0 commit comments

Comments
 (0)