Class InlineQueryResultPhoto


  • public class InlineQueryResultPhoto
    extends InlineQueryResult
    Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can provide message_text to send it instead of photo.
    • Constructor Detail

      • InlineQueryResultPhoto

        public InlineQueryResultPhoto()
      • InlineQueryResultPhoto

        public InlineQueryResultPhoto​(String photoUrl,
                                      String thumbUrl)
        Parameters:
        photoUrl - A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB
        thumbUrl - URL of the thumbnail for the photo
      • InlineQueryResultPhoto

        public InlineQueryResultPhoto​(String photoUrl,
                                      String thumbUrl,
                                      Integer photoWidth,
                                      Integer photoHeight,
                                      String title,
                                      String description,
                                      String caption,
                                      InlineKeyboardMarkup replyMarkup,
                                      InputMessageContent inputMessageContent)
        Parameters:
        photoUrl - A valid URL of the photo. Photo must be in jpeg format. Photo size must not exceed 5MB
        thumbUrl - URL of the thumbnail for the photo
        photoWidth - Optional. Width of the photo
        photoHeight - Optional. Height of the photo
        title - Optional. Title for the result
        description - Optional. Short description of the result
        caption - Optional. Caption of the photo to be sent, 0-200 characters
        replyMarkup - Optional. Inline keyboard attached to the message
        inputMessageContent - Optional. Content of the message