Class InlineQueryResultVenue
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultVenue
-
public class InlineQueryResultVenue extends InlineQueryResult
Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultVenue()
InlineQueryResultVenue(String title, String address, Float latitude, Float longitude)
InlineQueryResultVenue(String title, String address, String foursquareId, String foursquareType, Float latitude, Float longitude, String thumbUrl, Integer thumbWidth, Integer thumbHeight, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultVenue
public InlineQueryResultVenue()
-
InlineQueryResultVenue
public InlineQueryResultVenue(String title, String address, Float latitude, Float longitude)
- Parameters:
title
- Location titleaddress
- Address of the venuelatitude
- Location latitude in degreeslongitude
- Location longitude in degrees
-
InlineQueryResultVenue
public InlineQueryResultVenue(String title, String address, String foursquareId, String foursquareType, Float latitude, Float longitude, String thumbUrl, Integer thumbWidth, Integer thumbHeight, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
title
- Location titleaddress
- Address of the venuefoursquareId
- Optional. Foursquare identifier of the venue if knownfoursquareType
- Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)latitude
- Location latitude in degreeslongitude
- Location longitude in degreesthumbUrl
- Optional. URL of the thumbnail (jpeg only) for the filethumbWidth
- Optional. Thumbnail widththumbHeight
- Optional. Thumbnail heightreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-