Class InlineQueryResultLocation


  • public class InlineQueryResultLocation
    extends InlineQueryResult
    Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.
    • Constructor Detail

      • InlineQueryResultLocation

        public InlineQueryResultLocation()
      • InlineQueryResultLocation

        public InlineQueryResultLocation​(String title,
                                         Float latitude,
                                         Float longitude)
        Parameters:
        title - Location title
        latitude - Location latitude in degrees
        longitude - Location longitude in degrees
      • InlineQueryResultLocation

        public InlineQueryResultLocation​(String title,
                                         Float latitude,
                                         Float longitude,
                                         String thumbUrl,
                                         Integer thumbWidth,
                                         Integer thumbHeight,
                                         Integer livePeriod,
                                         InlineKeyboardMarkup replyMarkup,
                                         InputMessageContent inputMessageContent)
        Parameters:
        title - Location title
        latitude - Location latitude in degrees
        longitude - Location longitude in degrees
        thumbUrl - Optional. URL of the thumbnail (jpeg only) for the file
        thumbWidth - Optional. Thumbnail width
        thumbHeight - Optional. Thumbnail height
        livePeriod - Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message