diff --git a/CHANGELOG.md b/CHANGELOG.md index f045e67d05..6450cf3b2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ * Change algorithm of `executeUnsafe`: now it use loop instead of recursive calling * Add additional `startGettingUpdates` with better management of received updates for media groups * Now `MediaGroupMessage` is `CommonMessage` with `MediaGroupContent` content +* Added extensions `replyTo`, `forwarded` and `chat` for `List.forwarded: ForwardedMessage? + get() = first().let { + (it as? AbleToBeForwardedMessage) ?.forwarded + } + +val List.replyTo: Message? + get() = first().let { + (it as? AbleToReplyMessage) ?.replyTo + } + +val List.chat: Chat? + get() = first().data.chat