Class InputSticker
java.lang.Object
io.github.natanimn.telebof.types.input.InputSticker
- All Implemented Interfaces:
- InputMedia,- Serializable
This object describes a sticker to be added to a sticker set.
- Since:
- 3 March 2025
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionInputSticker(File sticker, StickerFormat format, String[] emoji_list) RequiredInputSticker(String sticker, StickerFormat format, String[] emoji_list) Required
- 
Method SummaryModifier and TypeMethodDescriptiongetFiles()Used only for internal purposebooleanhasFile()Used only for internal purposeOptionalmaskPosition(MaskPosition mask_position) Optional
- 
Constructor Details- 
InputStickerRequired- Parameters:
- sticker- The added sticker. Pass an object of- Fileto upload from your local machine.
- format- Format of the added sticker, must be one of- StickerFormat.STATICfor a .WEBP or .PNG image,- StickerFormat.ANIMATEDfor a .TGS animation,- StickerFormat.VIDEOfor a .WEBM video
- emoji_list- List of 1-20 emoji associated with the sticker
 
- 
InputStickerRequired- Parameters:
- sticker- The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, or pass an HTTP URL as a String for Telegram to get a file from the Internet.
- format- Format of the added sticker, must be one of- StickerFormat.STATICfor a .WEBP or .PNG image,- StickerFormat.ANIMATEDfor a .TGS animation,- StickerFormat.VIDEOfor a .WEBM video
- emoji_list- List of 1-20 emoji associated with the sticker
 
 
- 
- 
Method Details- 
maskPositionOptional- Parameters:
- mask_position- Position where the mask should be placed on faces. For “mask” stickers only.
- Returns:
- InputSticker
 
- 
keywordsOptional- Parameters:
- keywords- List of 0-20 search keywords for the sticker with total length of up to 64 characters. For- StickerType.REGULARand- StickerType.CUSTOM_EMOJIstickers only.
- Returns:
- InputSticker
 
- 
hasFilepublic boolean hasFile()Used only for internal purpose- Specified by:
- hasFilein interface- InputMedia
- Returns:
- boolean
 
- 
getFilesUsed only for internal purpose- Specified by:
- getFilesin interface- InputMedia
- Returns:
- List of files
 
 
-