Class InlineQueryResultVenue
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultVenue
- All Implemented Interfaces:
InlineQueryResult
,Serializable
Represents a venue. By default, the venue will be sent by the user.
Alternatively, you can use
inputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent)
to send a message with the specified content instead of the venue.- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultVenue
(String id, double latitude, double longitude, String title, String address) Required -
Method Summary
Modifier and TypeMethodDescriptionfoursquareId
(String foursquare_id) OptionalfoursquareType
(String foursquare_type) OptionalgooglePlaceId
(String google_place_id) OptionalgooglePlaceType
(String google_place_type) OptionalinputMessageContent
(InputTextMessageContent input_message_content) OptionalreplyMarkup
(InlineKeyboardMarkup keyboard) OptionalthumbnailHeight
(int thumbnail_height) OptionalthumbnailUrl
(String thumbnail_url) OptionalthumbnailWidth
(int thumbnail_width) Optional
-
Constructor Details
-
InlineQueryResultVenue
public InlineQueryResultVenue(String id, double latitude, double longitude, String title, String address) Required- Parameters:
id
- Unique identifier for this result, 1-64 Byteslatitude
- Latitude of the venue location in degreeslongitude
- Longitude of the venue location in degreestitle
- Title of the venueaddress
- Address of the venue
-
-
Method Details
-
foursquareId
Optional- Parameters:
foursquare_id
- Foursquare identifier of the venue if known- Returns:
InlineQueryResultVenue
-
foursquareType
Optional- Parameters:
foursquare_type
- Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)- Returns:
InlineQueryResultVenue
-
googlePlaceId
Optional- Parameters:
google_place_id
- Google Places identifier of the venue- Returns:
InlineQueryResultVenue
-
googlePlaceType
Optional- Parameters:
google_place_type
- Google Places type of the venue.- Returns:
InlineQueryResultVenue
-
thumbnailUrl
Optional- Parameters:
thumbnail_url
- Url of the thumbnail for the result- Returns:
InlineQueryResultVenue
-
thumbnailWidth
Optional- Parameters:
thumbnail_width
- Thumbnail width- Returns:
InlineQueryResultVenue
-
thumbnailHeight
Optional- Parameters:
thumbnail_height
- Thumbnail height- Returns:
InlineQueryResultVenue
-
inputMessageContent
Optional- Parameters:
input_message_content
- Content of the message to be sent instead of the venue- Returns:
InlineQueryResultVenue
-
replyMarkup
Optional- Parameters:
keyboard
-Inline keyboard
attached to the message- Returns:
InlineQueryResultVenue
-