onPoll

inline fun Bot.onPoll(sequence: SubscribeSequence = NORMAL, crossinline processor: suspend (Event, poll: Poll) -> Unit)

Register processor for Poll named POLL_NAME

Equivalent to the following:

// process or preProcess
bot.subscribe<Poll>(sequence, POLL_NAME) { event, poll ->
// ...
}

See also