Class InlineQueryResultCachedSticker
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedSticker
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,InlineQueryResult
- Direct Known Subclasses:
InlineQueryResultCachedSticker
public class InlineQueryResultCachedSticker extends Object implements InlineQueryResult
- Version:
- 1.0 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 input_message_content to send a message with the specified content instead of the sticker.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedSticker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()InputMessageContentgetInputMessageContent()InlineKeyboardMarkupgetReplyMarkup()StringgetStickerFileId()StringgetType()InlineQueryResultCachedStickersetId(String id)InlineQueryResultCachedStickersetInputMessageContent(InputMessageContent inputMessageContent)InlineQueryResultCachedStickersetReplyMarkup(InlineKeyboardMarkup replyMarkup)InlineQueryResultCachedStickersetStickerFileId(String stickerFileId)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
getId
public String getId()
-
setId
public InlineQueryResultCachedSticker setId(String id)
-
getStickerFileId
public String getStickerFileId()
-
setStickerFileId
public InlineQueryResultCachedSticker setStickerFileId(String stickerFileId)
-
getInputMessageContent
public InputMessageContent getInputMessageContent()
-
setInputMessageContent
public InlineQueryResultCachedSticker setInputMessageContent(InputMessageContent inputMessageContent)
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
setReplyMarkup
public InlineQueryResultCachedSticker setReplyMarkup(InlineKeyboardMarkup replyMarkup)
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-