docs / com.github.insanusmokrassar.TelegramBotAPI.updateshandlers

Package com.github.insanusmokrassar.TelegramBotAPI.updateshandlers

Types

(common)

FlowsUpdatesFilter

class FlowsUpdatesFilter : UpdatesFilter
(common)

SimpleUpdatesFilter

data class SimpleUpdatesFilter : UpdatesFilter
(common)

UpdateReceiver

typealias UpdateReceiver<T> = suspend (T) -> Unit
(common)

UpdatesFilter

interface UpdatesFilter

Functions

(common)

createSimpleUpdateFilter

fun createSimpleUpdateFilter(messageCallback: UpdateReceiver<MessageUpdate>? = null, mediaGroupCallback: UpdateReceiver<MediaGroupUpdate>? = null, editedMessageCallback: UpdateReceiver<EditMessageUpdate>? = null, channelPostCallback: UpdateReceiver<ChannelPostUpdate>? = null, editedChannelPostCallback: UpdateReceiver<EditChannelPostUpdate>? = null, chosenInlineResultCallback: UpdateReceiver<ChosenInlineResultUpdate>? = null, inlineQueryCallback: UpdateReceiver<InlineQueryUpdate>? = null, callbackQueryCallback: UpdateReceiver<CallbackQueryUpdate>? = null, shippingQueryCallback: UpdateReceiver<ShippingQueryUpdate>? = null, preCheckoutQueryCallback: UpdateReceiver<PreCheckoutQueryUpdate>? = null, pollCallback: UpdateReceiver<PollUpdate>? = null, pollAnswerCallback: UpdateReceiver<PollAnswerUpdate>? = null, unknownCallback: UpdateReceiver<UnknownUpdateType>? = null): UpdatesFilter