<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></div></div><spanclass="token keyword">object </span><ahref="-close/index.html">Close</a> : <ahref="../dev.inmo.tgbotapi.requests.abstracts/-simple-request/index.html">SimpleRequest</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><spanclass="token operator">></span></div><divclass="brief "><pclass="paragraph">Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched.</p></div></div></div>
<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></div></div><spanclass="token keyword">object </span><ahref="-log-out/index.html">LogOut</a> : <ahref="../dev.inmo.tgbotapi.requests.abstracts/-simple-request/index.html">SimpleRequest</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><spanclass="token operator">></span></div><divclass="brief "><pclass="paragraph">Use this method to log out from the cloud Bot API server before launching the bot locally. You <strong>must</strong> log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you will not be able to log in again using the same token for 10 minutes</p></div></div></div>