Class InlineQueryResultPhoto
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.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.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultPhoto()
InlineQueryResultPhoto(String photoUrl, String thumbUrl)
InlineQueryResultPhoto(String photoUrl, String thumbUrl, Integer photoWidth, Integer photoHeight, String title, String description, String caption, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
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 5MBthumbUrl
- 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 5MBthumbUrl
- URL of the thumbnail for the photophotoWidth
- Optional. Width of the photophotoHeight
- Optional. Height of the phototitle
- Optional. Title for the resultdescription
- Optional. Short description of the resultcaption
- Optional. Caption of the photo to be sent, 0-200 charactersreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-