Class InlineQueryResultCachedPhoto
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultCachedPhoto
-
public class InlineQueryResultCachedPhoto extends InlineQueryResult
Represents a link to a photo stored on the Telegram servers. 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 InlineQueryResultCachedPhoto()
InlineQueryResultCachedPhoto(String photoFileId)
InlineQueryResultCachedPhoto(String photoFileId, String title, String description, String caption, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultCachedPhoto
public InlineQueryResultCachedPhoto()
-
InlineQueryResultCachedPhoto
public InlineQueryResultCachedPhoto(String photoFileId)
- Parameters:
photoFileId
- A valid file identifier of the photo
-
InlineQueryResultCachedPhoto
public InlineQueryResultCachedPhoto(String photoFileId, String title, String description, String caption, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
photoFileId
- A valid file identifier 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
-
-