Class TdApi.UploadStickerFile
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.File>
dev.voroby.springframework.telegram.client.TdApi.UploadStickerFile
- Enclosing class:
- TdApi
Uploads a file with a sticker; returns the uploaded file.
Returns File
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.File file to upload; must fit in a 512x512 square.Sticker format.long
Sticker file owner; ignored for regular users. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which uploads a file with a sticker; returns the uploaded file.UploadStickerFile
(long userId, TdApi.StickerFormat stickerFormat, TdApi.InputFile sticker) Creates a function, which uploads a file with a sticker; returns the uploaded file. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
userId
public long userIdSticker file owner; ignored for regular users. -
stickerFormat
Sticker format. -
sticker
File file to upload; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
UploadStickerFile
public UploadStickerFile()Default constructor for a function, which uploads a file with a sticker; returns the uploaded file.Returns
File
-
UploadStickerFile
Creates a function, which uploads a file with a sticker; returns the uploaded file.Returns
File
- Parameters:
userId
- Sticker file owner; ignored for regular users.stickerFormat
- Sticker format.sticker
- File file to upload; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-