Class InlineQueryResultCachedSticker
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultCachedSticker
- All Implemented Interfaces:
InlineQueryResult,Serializable
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user.
Alternatively, you can use
setInputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent) to send a message with the specified content instead of the sticker.- Since:
- 3 March 2025
- Author:
- Natanim
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate InputTextMessageContentprivate InlineKeyboardMarkupprivate Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetInputMessageContent(InputTextMessageContent inputMessageContent) OptionalsetReplyMarkup(InlineKeyboardMarkup replyMarkup) Optional
-
Field Details
-
stickerFileId
-
type
-
id
-
inputMessageContent
-
replyMarkup
-
-
Constructor Details
-
InlineQueryResultCachedSticker
Required- Parameters:
id- Unique identifier for this result, 1-64 bytesstickerFileId- A valid file identifier of the sticker
-
-
Method Details
-
setInputMessageContent
public InlineQueryResultCachedSticker setInputMessageContent(InputTextMessageContent inputMessageContent) Optional- Parameters:
inputMessageContent- Content of the message to be sent instead of the sticker- Returns:
InlineQueryResultCachedSticker
-
setReplyMarkup
Optional- Parameters:
replyMarkup-Inline keyboardattached to the message- Returns:
InlineQueryResultCachedSticker
-