1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 19:48:43 +00:00

fix forward_from_chat for SupergroupChat

This commit is contained in:
InsanusMokrassar 2020-10-02 18:07:16 +06:00
parent 70b592baad
commit 39ca29279f
2 changed files with 0 additions and 2 deletions

View File

@ -27,6 +27,5 @@ data class ForwardFromChannelInfo(
data class ForwardFromSupergroupInfo( data class ForwardFromSupergroupInfo(
override val dateOfOriginal: TelegramDate, override val dateOfOriginal: TelegramDate,
val messageId: MessageIdentifier,
val group: SupergroupChat val group: SupergroupChat
) : ForwardInfo() ) : ForwardInfo()

View File

@ -155,7 +155,6 @@ internal data class RawMessage(
) )
forward_from_chat is SupergroupChat -> ForwardFromSupergroupInfo( forward_from_chat is SupergroupChat -> ForwardFromSupergroupInfo(
forward_date, forward_date,
forward_from_message_id ?: error("Channel forwarded message must contain message id, but was not"),
forward_from_chat forward_from_chat
) )
forward_from != null -> UserForwardInfo( forward_from != null -> UserForwardInfo(