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/CommonMessageImpl.kt

24 lines
1.2 KiB
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
2019-01-10 14:09:51 +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.github.insanusmokrassar.TelegramBotAPI.types.message.content.abstracts.PossiblySentViaBotCommonMessage
import com.github.insanusmokrassar.TelegramBotAPI.types.message.payments.SuccessfulPaymentInfo
import com.soywiz.klock.DateTime
2018-12-26 08:07:24 +00:00
data class CommonMessageImpl<T: MessageContent>(
override val messageId: MessageIdentifier,
2019-01-10 14:09:51 +00:00
override val user: User,
2018-12-26 08:07:24 +00:00
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?,
val paymentInfo: SuccessfulPaymentInfo?
) : PossiblySentViaBotCommonMessage<T>, FromUserMessage