1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-12-17 19:55:49 +00:00

seal of MediaGroupUpdates

This commit is contained in:
2021-06-30 11:12:09 +06:00
parent 65801f5104
commit 6ba9a31fb9
3 changed files with 5 additions and 4 deletions

View File

@@ -17,7 +17,6 @@ fun Update.sourceChat(): Chat? = when (this) {
is MediaGroupUpdate -> when (this) {
is SentMediaGroupUpdate -> data.chat
is EditMediaGroupUpdate -> data.chat
else -> null
}
is BaseMessageUpdate -> data.chat
is InlineQueryUpdate -> data.from