1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 03:58:44 +00:00

hotfixes in new media groups shortcuts

This commit is contained in:
InsanusMokrassar 2020-06-02 13:22:36 +06:00
parent 16f55d70af
commit 6073d914d5

View File

@ -17,9 +17,9 @@ val List<MediaGroupMessage>.mediaGroupId: MediaGroupIdentifier?
get() = firstOrNull() ?.mediaGroupId get() = firstOrNull() ?.mediaGroupId
val SentMediaGroupUpdate.forwardInfo: ForwardInfo? val SentMediaGroupUpdate.forwardInfo: ForwardInfo?
get() = data.forwardInfo!! get() = data.first().forwardInfo
val SentMediaGroupUpdate.replyTo: Message? val SentMediaGroupUpdate.replyTo: Message?
get() = data.replyTo get() = data.first().replyTo
val SentMediaGroupUpdate.chat: Chat val SentMediaGroupUpdate.chat: Chat
get() = data.chat!! get() = data.chat!!
val SentMediaGroupUpdate.mediaGroupId: MediaGroupIdentifier val SentMediaGroupUpdate.mediaGroupId: MediaGroupIdentifier