1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-03 00:15:27 +00:00
tgbotapi/TelegramBotAPI/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/message/ChannelMessage.kt

22 lines
970 B
Kotlin
Raw Normal View History

2018-12-26 08:07:24 +00:00
package com.github.insanusmokrassar.TelegramBotAPI.types.message
2020-06-05 07:38:05 +00:00
import com.github.insanusmokrassar.TelegramBotAPI.types.*
2019-06-01 09:28:37 +00:00
import com.github.insanusmokrassar.TelegramBotAPI.types.buttons.InlineKeyboardMarkup
import com.github.insanusmokrassar.TelegramBotAPI.types.chat.abstracts.Chat
2020-06-05 07:38:05 +00:00
import com.github.insanusmokrassar.TelegramBotAPI.types.message.abstracts.*
2018-12-26 08:07:24 +00:00
import com.github.insanusmokrassar.TelegramBotAPI.types.message.content.abstracts.MessageContent
import com.soywiz.klock.DateTime
2018-12-26 08:07:24 +00:00
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 forwardInfo: ForwardInfo?,
2018-12-26 08:07:24 +00:00
override val replyTo: Message?,
2019-06-01 09:28:37 +00:00
override val replyMarkup: InlineKeyboardMarkup?,
2020-06-05 07:38:05 +00:00
override val senderBot: CommonBot?,
2018-12-26 08:07:24 +00:00
val authorSignature: AuthorSignature?
2020-06-05 07:38:05 +00:00
) : CommonMessage<T>, PossiblySentViaBot