Skip to content

//core/com.petersamokhin.vksdk.core.model.objects/Message

Message

[common]\ class Message(userId: Int?, peerId: Int?, domain: String?, chatId: Int?, userIds: String?, randomId: Long?, message: String?, lat: Double?, long: Double?, attachment: String?, replyTo: Int?, forwardMessages: String?, stickerId: Int?, groupId: Int?, keyboard: Keyboard?, payload: String?, dontParseLinks: Int?, disableMentions: Int?, intent: String?, template: MessageCarouselTemplate?)

Message to be sent

https://vk.com/dev/messages.send

Constructors

Message [common]
fun Message(userId: Int? = null, peerId: Int? = null, domain: String? = null, chatId: Int? = null, userIds: String? = null, randomId: Long? = null, message: String? = null, lat: Double? = null, long: Double? = null, attachment: String? = null, replyTo: Int? = null, forwardMessages: String? = null, stickerId: Int? = null, groupId: Int? = null, keyboard: Keyboard? = null, payload: String? = null, dontParseLinks: Int? = null, disableMentions: Int? = null, intent: String? = null, template: MessageCarouselTemplate? = null)

Functions

Name Summary
attachment [common]
fun attachment(v: String): Message
fun attachment(items: Iterable<String>): Message
chatId [common]
fun chatId(v: Int): Message
fun chatId(v: String): Message
disableMentions [common]
fun disableMentions(value: Boolean): Message
domain [common]
fun domain(v: String): Message
dontParseLinks [common]
fun dontParseLinks(value: Boolean): Message
forwardMessages [common]
fun forwardMessages(vararg ids: String): Message
fun forwardMessages(vararg ids: Int): Message
fun forwardMessages(ids: Iterable<Int>): Message
groupId [common]
fun groupId(v: Int): Message
fun groupId(v: String): Message
intent [common]
fun intent(v: String): Message
keyboard [common]
fun keyboard(v: Keyboard): Message
latitude [common]
fun latitude(v: Double): Message
fun latitude(v: String): Message
longitude [common]
fun longitude(v: Double): Message
fun longitude(v: String): Message
payload [common]
fun payload(v: String): Message
peerId [common]
fun peerId(v: Int): Message
fun peerId(v: String): Message
replyTo [common]
fun replyTo(v: Int): Message
fun replyTo(v: String): Message
sendFrom [common]
fun sendFrom(client: VkApiClient): VkRequest
stickerId [common]
fun stickerId(v: Int): Message
fun stickerId(v: String): Message
template [common]
fun template(v: MessageCarouselTemplate): Message
text [common]
fun text(v: String): Message
userIds [common]
fun userIds(vararg ids: String): Message
fun userIds(vararg ids: Int): Message
fun userIds(ids: Iterable<Int>): Message

Properties

Name Summary
attachment [common]
var attachment: String? = null
chatId [common]
var chatId: Int? = null
disableMentions [common]
var disableMentions: Int? = null
domain [common]
var domain: String? = null
dontParseLinks [common]
var dontParseLinks: Int? = null
forwardMessages [common]
var forwardMessages: String? = null
groupId [common]
var groupId: Int? = null
intent [common]
var intent: String? = null
keyboard [common]
var keyboard: Keyboard? = null
lat [common]
var lat: Double? = null
long [common]
var long: Double? = null
message [common]
var message: String? = null
payload [common]
var payload: String? = null
peerId [common]
var peerId: Int? = null
randomId [common]
var randomId: Long? = null
replyTo [common]
var replyTo: Int? = null
stickerId [common]
var stickerId: Int? = null
template [common]
var template: MessageCarouselTemplate? = null
userId [common]
var userId: Int? = null
userIds [common]
var userIds: String? = null