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:
parent
6873c23309
commit
051f5e22e7
@ -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
|
||||||
)
|
)
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user