<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":tgbotapi.core:dokkaHtmlPartial/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><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=":tgbotapi.core:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="../as-multipart-file.html"><span>as</span><wbr><span>Multipart</span><wbr><span><span>File</span></span></a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":tgbotapi.core:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-companion/from-input.html"><span>InputFile.</span><wbr><span>Companion.</span><wbr><span>fromInput</span></a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":tgbotapi.core:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-companion/from-file.html"><span>InputFile.</span><wbr><span>Companion.</span><wbr><span>fromFile</span></a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":tgbotapi.core:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-companion/from-id.html"><span>InputFile.</span><wbr><span>Companion.</span><wbr><span>fromId</span></a></div></span></div><div></div></div></div><divclass="table-row"data-filterable-current=":tgbotapi.core:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="inline-flex"><div><ahref="-companion/from-url.html"><span>InputFile.</span><wbr><span>Companion.</span><wbr><span>fromUrl</span></a></div></span></div><div></div></div></div></div><h4class="">Inheritors</h4><divclass="table"><divclass="table-row"data-filterable-current=":tgbotapi.core:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/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=":tgbotapi.core:dokkaHtmlPartial/commonMain"data-filterable-set=":tgbotapi.core:dokkaHtmlPartial/commonMain"><divclass="main-subrow keyValue "><divclass=""><spanclass="i