23 lines
1.1 KiB
Kotlin
23 lines
1.1 KiB
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.types.message
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.AuthorSignature
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.MessageIdentifier
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.buttons.InlineKeyboardMarkup
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.Chat
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.abstracts.CommonMessage
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.abstracts.Message
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.content.abstracts.MessageContent
|
|
import com.soywiz.klock.DateTime
|
|
|
|
data class ChannelMessage<T: MessageContent>(
|
|
override val messageId: MessageIdentifier,
|
|
override val chat: Chat,
|
|
override val content: T,
|
|
override val date: DateTime,
|
|
override val editDate: DateTime?,
|
|
override val forwarded: ForwardedMessage?,
|
|
override val replyTo: Message?,
|
|
override val replyMarkup: InlineKeyboardMarkup?,
|
|
val authorSignature: AuthorSignature?
|
|
) : CommonMessage<T>
|