diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/message/RawMessage.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/message/RawMessage.kt index 8fc84d4e5d..b9220fdadd 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/message/RawMessage.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/message/RawMessage.kt @@ -134,8 +134,8 @@ data class RawMessage( @Transient private val forwarded: ForwardedMessage? by lazy { forward_date ?: return@lazy null // According to the documentation, now any forwarded message contains this field - forward_from_message_id ?.let { - forward_from ?: throw IllegalStateException("For common forwarded messages author of original message declared as set up required") + forward_from ?.let { + forward_from_message_id ?: throw IllegalStateException("For common forwarded messages message id of the original message declared as set up required") forward_from_chat ?.let { ForwardedFromChannelMessage( forward_from_message_id,