1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-02 07:55:25 +00:00
tgbotapi/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ConnectedChannelContentMessageImpl.kt

37 lines
1.4 KiB
Kotlin
Raw Normal View History

2020-10-04 11:06:30 +00:00
package dev.inmo.tgbotapi.types.message
2020-11-05 18:12:14 +00:00
import com.soywiz.klock.DateTime
2020-10-04 11:06:30 +00:00
import dev.inmo.tgbotapi.types.*
import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup
import dev.inmo.tgbotapi.types.chat.abstracts.ChannelChat
2021-12-18 16:28:01 +00:00
import dev.inmo.tgbotapi.types.message.abstracts.*
2020-11-05 18:12:14 +00:00
import dev.inmo.tgbotapi.types.message.content.abstracts.MessageContent
2020-10-04 11:06:30 +00:00
2021-12-18 16:28:01 +00:00
data class ConnectedChannelContentMessageImpl<T: MessageContent>(
2020-10-04 11:06:30 +00:00
override val messageId: MessageIdentifier,
override val chat: ChannelChat,
2020-10-04 11:06:30 +00:00
override val content: T,
override val date: DateTime,
override val editDate: DateTime?,
2021-12-18 17:11:28 +00:00
override val forwardable: Boolean,
2020-10-04 11:06:30 +00:00
override val forwardInfo: ForwardInfo?,
override val replyTo: Message?,
override val replyMarkup: InlineKeyboardMarkup?,
override val senderBot: CommonBot?,
override val authorSignature: AuthorSignature?
2021-12-18 17:11:28 +00:00
) : ConnectedChannelContentMessage<T> {
@Deprecated("Use the constructor with forwardable field")
constructor(
messageId: MessageIdentifier,
chat: ChannelChat,
content: T,
date: DateTime,
editDate: DateTime?,
forwardInfo: ForwardInfo?,
replyTo: Message?,
replyMarkup: InlineKeyboardMarkup?,
senderBot: CommonBot?,
authorSignature: AuthorSignature?
) : this(messageId, chat, content, date, editDate, true, forwardInfo, replyTo, replyMarkup, senderBot, authorSignature)
}