mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
24 lines
1.2 KiB
Kotlin
24 lines
1.2 KiB
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.types.message
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.MessageIdentifier
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.User
|
|
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.*
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.content.abstracts.MessageContent
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.payments.SuccessfulPaymentInfo
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.message.payments.abstracts.PaymentInfo
|
|
import com.soywiz.klock.DateTime
|
|
|
|
data class CommonMessageImpl<T: MessageContent>(
|
|
override val messageId: MessageIdentifier,
|
|
override val user: User,
|
|
override val chat: Chat,
|
|
override val content: T,
|
|
override val date: DateTime,
|
|
override val editDate: DateTime?,
|
|
override val forwardInfo: ForwardInfo?,
|
|
override val replyTo: Message?,
|
|
override val replyMarkup: InlineKeyboardMarkup?,
|
|
val paymentInfo: SuccessfulPaymentInfo?
|
|
) : Message, CommonMessage<T>, FromUserMessage |