1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

fix of createResend in story content

This commit is contained in:
InsanusMokrassar 2023-08-19 18:15:54 +06:00
parent 6873c23309
commit 051f5e22e7
2 changed files with 3 additions and 3 deletions

View File

@ -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
)

View File

@ -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,