# Uses of Class
it.tdlight.jni.TdApi.InputFile

## Uses of TdApi.InputFile in it.tdlight.jni

Subclasses of TdApi.InputFile in it.tdlight.jni
Modifier and Type
Class
Description
`static final class`
`TdApi.InputFileGenerated`
A file generated by the application.
`static final class`
`TdApi.InputFileId`
A file defined by its unique ID.
`static final class`
`TdApi.InputFileLocal`
A file defined by a local path.
`static final class`
`TdApi.InputFileRemote`
A file defined by its remote ID.
Fields in it.tdlight.jni declared as TdApi.InputFile
Modifier and Type
Field
Description
`TdApi.InputFile`
TdApi.AddSavedAnimation.`animation`
The animation file to be added.
`TdApi.InputFile`
TdApi.InputChatPhotoAnimation.`animation`
Animation to be set as profile photo.
`TdApi.InputFile`
TdApi.InputMessageAnimation.`animation`
Animation file to be sent.
`TdApi.InputFile`
TdApi.RemoveSavedAnimation.`animation`
Animation file to be removed.
`TdApi.InputFile[]`
TdApi.ImportMessages.`attachedFiles`
Files used in the imported messages.
`TdApi.InputFile`
TdApi.InputMessageAudio.`audio`
Audio file to be sent.
`TdApi.InputFile`
TdApi.InputBackgroundLocal.`background`
Background file to use.
`TdApi.InputFile`
TdApi.InputMessageDocument.`document`
Document to be sent.
`TdApi.InputFile`
TdApi.UploadFile.`file`
File to upload.
`TdApi.InputFile[]`
TdApi.InputPersonalDocument.`files`
List of files containing the pages of the document.
`TdApi.InputFile`
TdApi.InputIdentityDocument.`frontSide`
Front side of the document.
`TdApi.InputFile`
TdApi.ImportMessages.`messageFile`
File with messages to import.
`TdApi.InputFile`
TdApi.InputChatPhotoStatic.`photo`
Photo to be set as profile photo.
`TdApi.InputFile`
TdApi.InputMessagePhoto.`photo`
Photo to send.
`TdApi.InputFile`
TdApi.InputIdentityDocument.`reverseSide`
Reverse side of the document; only for driver license and identity card; pass null otherwise.
`TdApi.InputFile`
TdApi.InputIdentityDocument.`selfie`
Selfie with the document; pass null if unavailable.
`TdApi.InputFile`
TdApi.AddFavoriteSticker.`sticker`
Sticker file to add.
`TdApi.InputFile`
TdApi.AddRecentSticker.`sticker`
Sticker file to add.
`TdApi.InputFile`
TdApi.GetStickerEmojis.`sticker`
Sticker file identifier.
`TdApi.InputFile`
TdApi.InputMessageSticker.`sticker`
Sticker to be sent.
`TdApi.InputFile`
TdApi.InputStickerAnimated.`sticker`
File with the animated sticker.
`TdApi.InputFile`
TdApi.InputStickerStatic.`sticker`
PNG image with the sticker; must be up to 512 KB in size and fit in a 512x512 square.
`TdApi.InputFile`
TdApi.RemoveFavoriteSticker.`sticker`
Sticker file to delete from the list.
`TdApi.InputFile`
TdApi.RemoveRecentSticker.`sticker`
Sticker file to delete.
`TdApi.InputFile`
TdApi.RemoveStickerFromSet.`sticker`
Sticker.
`TdApi.InputFile`
TdApi.SetStickerPositionInSet.`sticker`
Sticker.
`TdApi.InputFile`
TdApi.InputThumbnail.`thumbnail`
Thumbnail file to send.
`TdApi.InputFile`
TdApi.SetStickerSetThumbnail.`thumbnail`
Thumbnail to set in PNG or TGS format; pass null to remove the sticker set thumbnail.
`TdApi.InputFile[]`
TdApi.InputIdentityDocument.`translation`
List of files containing a certified English translation of the document.
`TdApi.InputFile[]`
TdApi.InputPersonalDocument.`translation`
List of files containing a certified English translation of the document.
`TdApi.InputFile`
TdApi.InputMessageVideo.`video`
Video to be sent.
`TdApi.InputFile`
TdApi.InputMessageVideoNote.`videoNote`
Video note to be sent.
`TdApi.InputFile`
TdApi.InputMessageVoiceNote.`voiceNote`
Voice note to be sent.
Constructors in it.tdlight.jni with parameters of type TdApi.InputFile
Modifier
Constructor
Description
``
`AddFavoriteSticker(TdApi.InputFile sticker)`
Adds a new sticker to the list of favorite stickers.
``
`AddRecentSticker(boolean isAttached, TdApi.InputFile sticker)`
Manually adds a new sticker to the list of recently used stickers.
``
`AddSavedAnimation(TdApi.InputFile animation)`
Manually adds a new animation to the list of saved animations.
``
`GetStickerEmojis(TdApi.InputFile sticker)`
Returns emoji corresponding to a sticker.
``
`ImportMessages(long chatId, TdApi.InputFile messageFile, TdApi.InputFile[] attachedFiles)`
Imports messages exported from another app.
``
`InputBackgroundLocal(TdApi.InputFile background)`
A background from a local file.
``
`InputChatPhotoAnimation(TdApi.InputFile animation, double mainFrameTimestamp)`
An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 800 and be at most 2MB in size.
``
`InputChatPhotoStatic(TdApi.InputFile photo)`
A static photo in JPEG format.
``
`InputIdentityDocument(String number, TdApi.Date expiryDate, TdApi.InputFile frontSide, TdApi.InputFile reverseSide, TdApi.InputFile selfie, TdApi.InputFile[] translation)`
An identity document to be saved to Telegram Passport.
``
`InputMessageAnimation(TdApi.InputFile animation, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int duration, int width, int height, TdApi.FormattedText caption)`
An animation message (GIF-style).
``
`InputMessageAudio(TdApi.InputFile audio, TdApi.InputThumbnail albumCoverThumbnail, int duration, String title, String performer, TdApi.FormattedText caption)`
An audio message.
``
`InputMessageDocument(TdApi.InputFile document, TdApi.InputThumbnail thumbnail, boolean disableContentTypeDetection, TdApi.FormattedText caption)`
A document message (general file).
``
`InputMessagePhoto(TdApi.InputFile photo, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int width, int height, TdApi.FormattedText caption, int ttl)`
A photo message.
``
`InputMessageSticker(TdApi.InputFile sticker, TdApi.InputThumbnail thumbnail, int width, int height, String emoji)`
A sticker message.
``
`InputMessageVideo(TdApi.InputFile video, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int duration, int width, int height, boolean supportsStreaming, TdApi.FormattedText caption, int ttl)`
A video message.
``
`InputMessageVideoNote(TdApi.InputFile videoNote, TdApi.InputThumbnail thumbnail, int duration, int length)`
A video note message.
``
`InputMessageVoiceNote(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption)`
A voice note message.
``
`InputPersonalDocument(TdApi.InputFile[] files, TdApi.InputFile[] translation)`
A personal document to be saved to Telegram Passport.
``
`InputStickerAnimated(TdApi.InputFile sticker, String emojis)`
An animated sticker in TGS format.
``
`InputStickerStatic(TdApi.InputFile sticker, String emojis, TdApi.MaskPosition maskPosition)`
A static sticker in PNG format, which will be converted to WEBP server-side.
``
`InputThumbnail(TdApi.InputFile thumbnail, int width, int height)`
A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size.
``
`RemoveFavoriteSticker(TdApi.InputFile sticker)`
Removes a sticker from the list of favorite stickers.
``
`RemoveRecentSticker(boolean isAttached, TdApi.InputFile sticker)`
Removes a sticker from the list of recently used stickers.
``
`RemoveSavedAnimation(TdApi.InputFile animation)`
Removes an animation from the list of saved animations.
``
`RemoveStickerFromSet(TdApi.InputFile sticker)`
Removes a sticker from the set to which it belongs; for bots only.
``
`SetStickerPositionInSet(TdApi.InputFile sticker, int position)`
Changes the position of a sticker in the set to which it belongs; for bots only.
``
`SetStickerSetThumbnail(long userId, String name, TdApi.InputFile thumbnail)`
Sets a sticker set thumbnail; for bots only.
``
`UploadFile(TdApi.InputFile file, TdApi.FileType fileType, int priority)`
Asynchronously uploads a file to the cloud without sending it in a message.