mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 16:47:13 +00:00
fix forward_from_chat for SupergroupChat
This commit is contained in:
parent
70b592baad
commit
39ca29279f
@ -27,6 +27,5 @@ data class ForwardFromChannelInfo(
|
||||
|
||||
data class ForwardFromSupergroupInfo(
|
||||
override val dateOfOriginal: TelegramDate,
|
||||
val messageId: MessageIdentifier,
|
||||
val group: SupergroupChat
|
||||
) : ForwardInfo()
|
||||
|
@ -155,7 +155,6 @@ internal data class RawMessage(
|
||||
)
|
||||
forward_from_chat is SupergroupChat -> ForwardFromSupergroupInfo(
|
||||
forward_date,
|
||||
forward_from_message_id ?: error("Channel forwarded message must contain message id, but was not"),
|
||||
forward_from_chat
|
||||
)
|
||||
forward_from != null -> UserForwardInfo(
|
||||
|
Loading…
Reference in New Issue
Block a user