<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><divclass="block"><divclass="block"><spanclass="token annotation builtin">@</span><spandata-unresolved-link="kotlinx.serialization/Serializable///PointingToDeclaration/"><spanclass="token annotation builtin">Serializable</span></span><spanclass="token punctuation">(</span><span>with<spanclass="token operator"> = </span><ahref="../-input-file-serializer/index.html">InputFileSerializer::class</a></span><wbr></wbr><spanclass="token punctuation">)</span></div></div><spanclass="token keyword">sealed </span><spanclass="token keyword">class </span><ahref="index.html">InputFile</a></div><pclass="paragraph">Common type for all files in Telegram Bot API which can be sent via requests like <ahref="../../dev.inmo.tgbotapi.requests.send.media/-send-document.html">dev.inmo.tgbotapi.requests.send.media.SendDocument</a>. You may use methods like <ahref="../as-multipart-file.html">MPPFile.asMultipartFile</a> when you want to send files from your file system, but you should remember about restrictions[https://core.telegram.org/bots/api#sending-files] in Telegram for bots. In case you wish to send file by its url, use <ahref="../-file-id/index.html">FileId</a> and pass your url as <ahref="../-file-id/file-id.html">FileId.fileId</a></p><h4class="">See also</h4><divclass="table"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="../as-multipart-file.html"><span>as</span><wbr></wbr><span>Multipart</span><wbr></wbr><span><span>File</span></span></a></div></span></div><div></div></div></div></div><h4class="">Inheritors</h4><divclass="table"><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="../-file-id/index.html">FileId</a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":docs:dokkaHtml/commonMain"data-filterable-set=":docs:dokkaHtml/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="../-multipart-file/index.html">MultipartFile</a></div></span></div><div></div></div></div></div></div></div>