BusinessContentMessageImpl

data class BusinessContentMessageImpl<T : MessageContent>(val messageId: MessageId, val from: User, val chat: PreviewBusinessChat, val businessConnectionId: BusinessConnectionId, val content: T, val date: DateTime, val editDate: DateTime?, val hasProtectedContent: Boolean, val forwardOrigin: MessageOrigin?, val replyInfo: ReplyInfo?, val replyMarkup: InlineKeyboardMarkup?, val senderBot: CommonBot?, val mediaGroupId: MediaGroupId?, val senderBusinessBot: PreviewBot?, val fromOffline: Boolean) : BusinessContentMessage<T>

Constructors

Link copied to clipboard
constructor(messageId: MessageId, from: User, chat: PreviewBusinessChat, businessConnectionId: BusinessConnectionId, content: T, date: DateTime, editDate: DateTime?, hasProtectedContent: Boolean, forwardInfo: ForwardInfo, replyTo: AccessibleMessage?, replyMarkup: InlineKeyboardMarkup?, senderBot: CommonBot?, mediaGroupId: MediaGroupId?, senderBusinessBot: PreviewBot?, fromOffline: Boolean)
constructor(messageId: MessageId, from: User, chat: PreviewBusinessChat, businessConnectionId: BusinessConnectionId, content: T, date: DateTime, editDate: DateTime?, hasProtectedContent: Boolean, forwardOrigin: MessageOrigin?, replyInfo: ReplyInfo?, replyMarkup: InlineKeyboardMarkup?, senderBot: CommonBot?, mediaGroupId: MediaGroupId?, senderBusinessBot: PreviewBot?, fromOffline: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
open override val chat: PreviewBusinessChat
Link copied to clipboard
open override val content: T
Link copied to clipboard
open override val date: DateTime
Link copied to clipboard
open override val editDate: DateTime?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val forwardOrigin: MessageOrigin?
Link copied to clipboard
open override val from: User

The source User of this type

Link copied to clipboard
open override val fromOffline: Boolean
Link copied to clipboard
open override val hasProtectedContent: Boolean
Link copied to clipboard
open override val mediaGroupId: MediaGroupId?
Link copied to clipboard
open override val messageId: MessageId
Link copied to clipboard
Link copied to clipboard
open override val replyInfo: ReplyInfo?
Link copied to clipboard
open override val replyMarkup: InlineKeyboardMarkup?
Link copied to clipboard
open val replyTo: Message?
Link copied to clipboard
open override val senderBot: CommonBot?
Link copied to clipboard
open override val senderBusinessBot: PreviewBot?
Link copied to clipboard

Currently, there are only 1-1 business chats and any message in the chat sent not by PreviewBusinessChat.original must be sent by bot or user

Link copied to clipboard
Link copied to clipboard
open override val user: User?