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 Summary
ConstructorsConstructorDescriptionInputSticker(File sticker, StickerFormat format, String[] emoji_list) RequiredInputSticker(String sticker, StickerFormat format, String[] emoji_list) Required -
Method Summary
Modifier and TypeMethodDescriptiongetFiles()Used only for internal purposebooleanhasFile()Used only for internal purposeOptionalmaskPosition(MaskPosition mask_position) Optional
-
Constructor Details
-
InputSticker
Required- Parameters:
sticker- The added sticker. Pass an object ofFileto upload from your local machine.format- Format of the added sticker, must be one ofStickerFormat.STATICfor a .WEBP or .PNG image,StickerFormat.ANIMATEDfor a .TGS animation,StickerFormat.VIDEOfor a .WEBM videoemoji_list- List of 1-20 emoji associated with the sticker
-
InputSticker
Required- 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 ofStickerFormat.STATICfor a .WEBP or .PNG image,StickerFormat.ANIMATEDfor a .TGS animation,StickerFormat.VIDEOfor a .WEBM videoemoji_list- List of 1-20 emoji associated with the sticker
-
-
Method Details
-
maskPosition
Optional- Parameters:
mask_position- Position where the mask should be placed on faces. For “mask” stickers only.- Returns:
InputSticker
-
keywords
Optional- Parameters:
keywords- List of 0-20 search keywords for the sticker with total length of up to 64 characters. ForStickerType.REGULARandStickerType.CUSTOM_EMOJIstickers only.- Returns:
InputSticker
-
hasFile
public boolean hasFile()Used only for internal purpose- Specified by:
hasFilein interfaceInputMedia- Returns:
- boolean
-
getFiles
Used only for internal purpose- Specified by:
getFilesin interfaceInputMedia- Returns:
- List of files
-