NewMessage

data class NewMessage(val chatId: Long, val text: String, val replyMessageText: String? = null)

Data class representing a new message received from Telegram. This class contains the essential information about a message that was received or sent.

Constructors

Link copied to clipboard
constructor(chatId: Long, text: String, replyMessageText: String? = null)

Properties

Link copied to clipboard

The unique identifier of the chat where the message was sent/received

Link copied to clipboard

The text of the message being replied to, if this message is a reply

Link copied to clipboard

The text content of the message