subscribe

fun subscribe(channelId: Long, messageId: Long, onNext: (HashMap<Int, PollsStore.VotesSnapshot>?) -> Unit): Subscription

Subscribes to poll changes.

Parameters

channelId

Channel ID of message

messageId

Message ID to subscribe to

onNext

Event handler