Update Foursquare venue support.

parent 395cf87f
...@@ -41,6 +41,7 @@ use Longman\TelegramBot\Entities\InputMessageContent\InputMessageContent; ...@@ -41,6 +41,7 @@ use Longman\TelegramBot\Entities\InputMessageContent\InputMessageContent;
* @method string getTitle() Title of the venue * @method string getTitle() Title of the venue
* @method string getAddress() Address of the venue * @method string getAddress() Address of the venue
* @method string getFoursquareId() Optional. Foursquare identifier of the venue if known * @method string getFoursquareId() Optional. Foursquare identifier of the venue if known
* @method string getFoursquareType() Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
* @method InlineKeyboard getReplyMarkup() Optional. Inline keyboard attached to the message * @method InlineKeyboard getReplyMarkup() Optional. Inline keyboard attached to the message
* @method InputMessageContent getInputMessageContent() Optional. Content of the message to be sent instead of the venue * @method InputMessageContent getInputMessageContent() Optional. Content of the message to be sent instead of the venue
* @method string getThumbUrl() Optional. Url of the thumbnail for the result * @method string getThumbUrl() Optional. Url of the thumbnail for the result
...@@ -53,6 +54,7 @@ use Longman\TelegramBot\Entities\InputMessageContent\InputMessageContent; ...@@ -53,6 +54,7 @@ use Longman\TelegramBot\Entities\InputMessageContent\InputMessageContent;
* @method $this setTitle(string $title) Title of the venue * @method $this setTitle(string $title) Title of the venue
* @method $this setAddress(string $address) Address of the venue * @method $this setAddress(string $address) Address of the venue
* @method $this setFoursquareId(string $foursquare_id) Optional. Foursquare identifier of the venue if known * @method $this setFoursquareId(string $foursquare_id) Optional. Foursquare identifier of the venue if known
* @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”.)
* @method $this setReplyMarkup(InlineKeyboard $reply_markup) Optional. Inline keyboard attached to the message * @method $this setReplyMarkup(InlineKeyboard $reply_markup) Optional. Inline keyboard attached to the message
* @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the venue * @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the venue
* @method $this setThumbUrl(string $thumb_url) Optional. Url of the thumbnail for the result * @method $this setThumbUrl(string $thumb_url) Optional. Url of the thumbnail for the result
......
...@@ -19,25 +19,28 @@ use Longman\TelegramBot\Entities\InlineQuery\InlineEntity; ...@@ -19,25 +19,28 @@ use Longman\TelegramBot\Entities\InlineQuery\InlineEntity;
* *
* <code> * <code>
* $data = [ * $data = [
* 'latitude' => 36.0338, * 'latitude' => 36.0338,
* 'longitude' => 71.8601, * 'longitude' => 71.8601,
* 'title' => '', * 'title' => '',
* 'address' => '', * 'address' => '',
* 'foursquare_id' => '', * 'foursquare_id' => '',
* 'foursquare_type' => '',
* ]; * ];
* </code> * </code>
* *
* @method float getLatitude() Latitude of the location in degrees * @method float getLatitude() Latitude of the location in degrees
* @method float getLongitude() Longitude of the location in degrees * @method float getLongitude() Longitude of the location in degrees
* @method string getTitle() Name of the venue * @method string getTitle() Name of the venue
* @method string getAddress() Address of the venue * @method string getAddress() Address of the venue
* @method string getFoursquareIdTitle() Optional. Foursquare identifier of the venue, if known * @method string getFoursquareId() Optional. Foursquare identifier of the venue, if known
* @method string getFoursquareType() Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
* *
* @method $this setLatitude(float $latitude) Latitude of the location in degrees * @method $this setLatitude(float $latitude) Latitude of the location in degrees
* @method $this setLongitude(float $longitude) Longitude of the location in degrees * @method $this setLongitude(float $longitude) Longitude of the location in degrees
* @method $this setTitle(string $title) Name of the venue * @method $this setTitle(string $title) Name of the venue
* @method $this setAddress(string $address) Address of the venue * @method $this setAddress(string $address) Address of the venue
* @method $this setFoursquareIdTitle(string $foursquare_id_title) Optional. Foursquare identifier of the venue, if known * @method $this setFoursquareId(string $foursquare_id) Optional. Foursquare identifier of the venue, if known
* @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”.)
*/ */
class InputVenueMessageContent extends InlineEntity implements InputMessageContent class InputVenueMessageContent extends InlineEntity implements InputMessageContent
{ {
......
...@@ -15,10 +15,11 @@ namespace Longman\TelegramBot\Entities; ...@@ -15,10 +15,11 @@ namespace Longman\TelegramBot\Entities;
* *
* @link https://core.telegram.org/bots/api#venue * @link https://core.telegram.org/bots/api#venue
* *
* @method Location getLocation() Venue location * @method Location getLocation() Venue location
* @method string getTitle() Name of the venue * @method string getTitle() Name of the venue
* @method string getAddress() Address of the venue * @method string getAddress() Address of the venue
* @method string getFoursquareId() Optional. Foursquare identifier of the venue * @method string getFoursquareId() Optional. Foursquare identifier of the venue
* @method string getFoursquareType() Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
*/ */
class Venue extends Entity class Venue extends Entity
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment