- Enclosing class:
- TdApi
Uploads a file with a sticker; returns
the uploaded file.
Returns
File
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
File file to upload; must fit in a 512x512 square.Sticker format.long
Sticker file owner; ignored for regular users. -
Constructor Summary
ConstructorDescriptionUploads a file with a sticker; returns the uploaded file.UploadStickerFile
(long userId, TdApi.StickerFormat stickerFormat, TdApi.InputFile sticker) Uploads a file with a sticker; returns the uploaded file.UploadStickerFile
(DataInput input) Uploads a file with a sticker; returns the uploaded file. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
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 CONSTRUCTOR- See Also:
-
-
Constructor Details
-
UploadStickerFile
public UploadStickerFile()Uploads a file with a sticker; returns the uploaded file. ReturnsFile
-
UploadStickerFile
Uploads a file with a sticker; returns the uploaded file. ReturnsFile
- Parameters:
userId
- long Sticker file owner; ignored for regular users.stickerFormat
- StickerFormat Sticker format.sticker
- InputFile 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.
-
UploadStickerFile
Uploads a file with a sticker; returns the uploaded file. ReturnsFile
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-