//core/com.petersamokhin.vksdk.core.model.event/IncomingMessage
IncomingMessage¶
[common]\
data class IncomingMessage(id: Int, date: Int, peerId: Int, fromId: Int, text: String, randomId: Int, ref: String?, refSource: String?, attachments: List
VK incoming message object, e.g. for Long Poll events
https://vk.com/dev/objects/message
Constructors¶
IncomingMessage | [common] fun IncomingMessage(id: Int, date: Int, peerId: Int, fromId: Int, text: String, randomId: Int, ref: String? = null, refSource: String? = null, attachments: List |
Types¶
Name | Summary |
---|---|
Action | [common] data class Action(type: String, memberId: Int?, text: String?, email: String?, photo: IncomingMessage.Action.ChatPhoto?) |
Geo | [common] data class Geo(type: String, coordinates: List<Double>?, place: IncomingMessage.Geo.Place?) |
Keyboard | [common] data class Keyboard(oneTime: Boolean, inline: Boolean, buttons: List<IncomingMessage.Keyboard.Button>) |
Functions¶
Name | Summary |
---|---|
isFromChat | [common] fun isFromChat(): Boolean |
Properties¶
Name | Summary |
---|---|
action | [common] val action: IncomingMessage.Action? = null |
attachments | [common] val attachments: List |
date | [common] val date: Int |
fromId | [common] val fromId: Int |
fwdMessages | [common] val fwdMessages: List<MessagePartial> |
geo | [common] val geo: IncomingMessage.Geo? = null |
id | [common] val id: Int |
important | [common] val important: Boolean |
isHidden | [common] val isHidden: Boolean? = null |
keyboard | [common] val keyboard: IncomingMessage.Keyboard? = null |
payload | [common] val payload: String? = null |
peerId | [common] val peerId: Int |
randomId | [common] val randomId: Int |
ref | [common] val ref: String? = null |
refSource | [common] val refSource: String? = null |
replyMessage | [common] val replyMessage: JsonElement? = null |
text | [common] val text: String |