1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +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
val SentMediaGroupUpdate.forwardInfo: ForwardInfo?
get() = data.forwardInfo!!
get() = data.first().forwardInfo
val SentMediaGroupUpdate.replyTo: Message?
get() = data.replyTo
get() = data.first().replyTo
val SentMediaGroupUpdate.chat: Chat
get() = data.chat!!
val SentMediaGroupUpdate.mediaGroupId: MediaGroupIdentifier