mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-23 00:57:13 +00:00
fix of createResend in story content
This commit is contained in:
parent
6873c23309
commit
051f5e22e7
@ -137,7 +137,7 @@ internal data class RawMessage(
|
||||
|
||||
when {
|
||||
story != null -> StoryContent(
|
||||
from ?: error("For story content field 'from' is required and should contains User info"),
|
||||
chat,
|
||||
messageId,
|
||||
story
|
||||
)
|
||||
|
@ -13,7 +13,7 @@ import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class StoryContent(
|
||||
private val from: Chat,
|
||||
private val chat: Chat,
|
||||
private val messageId: MessageId,
|
||||
val story: Story
|
||||
) : MessageContent {
|
||||
@ -27,7 +27,7 @@ data class StoryContent(
|
||||
replyMarkup: KeyboardMarkup?
|
||||
): Request<out Message> {
|
||||
return ForwardMessage(
|
||||
from.id,
|
||||
chat.id,
|
||||
toChatId = chatId,
|
||||
messageId = messageId,
|
||||
threadId = messageThreadId,
|
||||
|
Loading…
Reference in New Issue
Block a user