<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="../dev.inmo.tgbotapi.types.update.abstracts/-base-edit-message-update/index.html">BaseEditMessageUpdate</a><spanclass="token punctuation">.</span><ahref="to-edit-media-group-update.html"><spanclass="token function">toEditMediaGroupUpdate</span></a><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../dev.inmo.tgbotapi.types.update.media_group/-edit-media-group-update/index.html">EditMediaGroupUpdate</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><h4class="">Return</h4><pclass="paragraph"><ahref="../dev.inmo.tgbotapi.types.update.media_group/-edit-message-media-group-update/index.html">EditMessageMediaGroupUpdate</a> in case if <spandata-unresolved-link="dev.inmo.tgbotapi.extensions.utils.updates//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> is <ahref="../dev.inmo.tgbotapi.types.update/-edit-message-update/index.html">EditMessageUpdate</a>. When <spandata-unresolved-link="dev.inmo.tgbotapi.extensions.utils.updates//&lt;this&gt;/#/PointingToCallableParameters(-1)/">this</span> object is <ahref="../dev.inmo.tgbotapi.types.update/-edit-channel-post-update/index.html">EditChannelPostUpdate</a> instance - will return <ahref="../dev.inmo.tgbotapi.types.update.media_group/-edit-channel-post-media-group-update/index.html">EditChannelPostMediaGroupUpdate</a></p><h2class="">Throws</h2><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="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-state-exception/index.html"><span>kotlin.</span><wbr></wbr><span>Illegal</span><wbr></wbr><span>State</span><wbr></wbr><span><span>Exception</span></span></a></div></span></div><div><divclass="title"></div></div></div></div></div></div></div>