1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +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 { when {
story != null -> StoryContent( story != null -> StoryContent(
from ?: error("For story content field 'from' is required and should contains User info"), chat,
messageId, messageId,
story story
) )

View File

@ -13,7 +13,7 @@ import kotlinx.serialization.Serializable
@Serializable @Serializable
data class StoryContent( data class StoryContent(
private val from: Chat, private val chat: Chat,
private val messageId: MessageId, private val messageId: MessageId,
val story: Story val story: Story
) : MessageContent { ) : MessageContent {
@ -27,7 +27,7 @@ data class StoryContent(
replyMarkup: KeyboardMarkup? replyMarkup: KeyboardMarkup?
): Request<out Message> { ): Request<out Message> {
return ForwardMessage( return ForwardMessage(
from.id, chat.id,
toChatId = chatId, toChatId = chatId,
messageId = messageId, messageId = messageId,
threadId = messageThreadId, threadId = messageThreadId,