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
setInputMessageContent(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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetFoursquareId(String foursquareId) OptionalsetFoursquareType(String foursquareType) OptionalsetGooglePlaceId(String googlePlaceId) OptionalsetGooglePlaceType(String googlePlaceType) OptionalsetInputMessageContent(InputTextMessageContent inputMessageContent) OptionalsetReplyMarkup(InlineKeyboardMarkup replyMarkup) OptionalsetThumbnailHeight(Integer thumbnailHeight) OptionalsetThumbnailUrl(String thumbnailUrl) OptionalsetThumbnailWidth(Integer thumbnailWidth) 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
-
setFoursquareId
Optional- Parameters:
foursquareId- Foursquare identifier of the venue if known- Returns:
InlineQueryResultVenue
-
setFoursquareType
Optional- Parameters:
foursquareType- Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)- Returns:
InlineQueryResultVenue
-
setGooglePlaceId
Optional- Parameters:
googlePlaceId- Google Places identifier of the venue- Returns:
InlineQueryResultVenue
-
setGooglePlaceType
Optional- Parameters:
googlePlaceType- Google Places type of the venue.- Returns:
InlineQueryResultVenue
-
setThumbnailUrl
Optional- Parameters:
thumbnailUrl- Url of the thumbnail for the result- Returns:
InlineQueryResultVenue
-
setThumbnailWidth
Optional- Parameters:
thumbnailWidth- Thumbnail width- Returns:
InlineQueryResultVenue
-
setThumbnailHeight
Optional- Parameters:
thumbnailHeight- Thumbnail height- Returns:
InlineQueryResultVenue
-
setInputMessageContent
Optional- Parameters:
inputMessageContent- Content of the message to be sent instead of the venue- Returns:
InlineQueryResultVenue
-
setReplyMarkup
Optional- Parameters:
replyMarkup-Inline keyboardattached to the message- Returns:
InlineQueryResultVenue
-