Class InlineQueryResultCachedPhoto
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultCachedPhoto>
io.github.natanimn.telebof.types.inline.InlineQueryResultCachedPhoto
- All Implemented Interfaces:
InlineQueryResult,Serializable
public class InlineQueryResultCachedPhoto
extends InlineQueryMediaResult<InlineQueryResultCachedPhoto>
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption.
Alternatively, you can use
InlineQueryMediaResult.setInputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent) to send a message with the specified content instead of the photo.- Since:
- 3 March 2025
- Author:
- Natanim
- See Also:
-
Field Summary
FieldsFields inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
thisT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetDescription(String description) OptionalsetShowCaptionAboveMedia(Boolean showCaptionAboveMedia) OptionalOptionalMethods inherited from class io.github.natanimn.telebof.types.inline.InlineQueryMediaResult
setCaption, setCaptionEntities, setInputMessageContent, setParseMode, setReplyMarkup
-
Field Details
-
photoFileId
-
title
-
description
-
showCaptionAboveMedia
-
-
Constructor Details
-
InlineQueryResultCachedPhoto
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesphotoFileId- A valid file identifier of the photo
-
-
Method Details
-
setTitle
Optional- Parameters:
title- Title for the result- Returns:
InlineQueryResultCachedPhoto
-
setDescription
Optional- Parameters:
description- Short description of the result- Returns:
InlineQueryResultCachedPhoto
-
setShowCaptionAboveMedia
Optional- Parameters:
showCaptionAboveMedia- Pass True, if the caption must be shown above the message media- Returns:
InlineQueryResultCachedPhoto
-