Package dev.inmo.tgbotapi.updateshandlers

Types

AbstractFlowsUpdatesFilter
Link copied to clipboard
common
abstract class AbstractFlowsUpdatesFilter : FlowsUpdatesFilter
DefaultFlowsUpdatesFilter
Link copied to clipboard
common
class DefaultFlowsUpdatesFilter(broadcastChannelsSize: Int, onBufferOverflow: BufferOverflow, upstreamUpdatesFlow: Flow<Update>?) : AbstractFlowsUpdatesFilter
FlowsUpdatesFilter
Link copied to clipboard
common
interface FlowsUpdatesFilter : UpdatesFilter
SimpleUpdatesFilter
Link copied to clipboard
common
data class SimpleUpdatesFilter(messageCallback: UpdateReceiver<MessageUpdate>?, messageMediaGroupCallback: UpdateReceiver<MessageMediaGroupUpdate>?, editedMessageCallback: UpdateReceiver<EditMessageUpdate>?, editedMessageMediaGroupCallback: UpdateReceiver<EditMessageMediaGroupUpdate>?, channelPostCallback: UpdateReceiver<ChannelPostUpdate>?, channelPostMediaGroupCallback: UpdateReceiver<ChannelPostMediaGroupUpdate>?, editedChannelPostCallback: UpdateReceiver<EditChannelPostUpdate>?, editedChannelPostMediaGroupCallback: UpdateReceiver<EditChannelPostMediaGroupUpdate>?, chosenInlineResultCallback: UpdateReceiver<ChosenInlineResultUpdate>?, inlineQueryCallback: UpdateReceiver<InlineQueryUpdate>?, callbackQueryCallback: UpdateReceiver<CallbackQueryUpdate>?, shippingQueryCallback: UpdateReceiver<ShippingQueryUpdate>?, preCheckoutQueryCallback: UpdateReceiver<PreCheckoutQueryUpdate>?, pollUpdateCallback: UpdateReceiver<PollUpdate>?, pollAnswerUpdateCallback: UpdateReceiver<PollAnswerUpdate>?, unknownUpdateTypeCallback: UpdateReceiver<UnknownUpdate>?) : UpdatesFilter
UpdateReceiver
Link copied to clipboard
common
typealias UpdateReceiver<T> = suspend (T) -> Unit
UpdatesFilter
Link copied to clipboard
common
interface UpdatesFilter

Functions

createSimpleUpdateFilter
Link copied to clipboard
common
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<UnknownUpdate>? = null): UpdatesFilter
FlowsUpdatesFilter
Link copied to clipboard
common
fun FlowsUpdatesFilter(broadcastChannelsSize: Int = 100, onBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND, upstreamUpdatesFlow: Flow<Update>? = null): DefaultFlowsUpdatesFilter