onChannelPost
inline fun Bot.onChannelPost(sequence: SubscribeSequence = NORMAL, crossinline processor: suspend (Event, channelPost: Message) -> Unit)
Register processor for Message named CHANNEL_POST_NAME
Equivalent to the following:
// process or preProcess
bot.subscribe<Message>(sequence, CHANNEL_POST_NAME) { event, channelPost ->
// ...
}
Content copied to clipboard