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
|
2020-11-05 06:39:59 +00:00
|
|
|
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,
|
2020-11-05 06:39:59 +00:00
|
|
|
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?,
|
2020-11-05 06:39:59 +00:00
|
|
|
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)
|
|
|
|
}
|