<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-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></div><spanclass="kdoc-tag"><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></span><h4class="">Throws</h4><divclass="table"data-togglable="Throws"><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>Illegal</span><wbr></wbr><span>State</span><wbr></wbr><span><span>Exception</span></span></a></div></span></div><div></div></div></div></div></div></div>