Behaviour Context With FSM
interface BehaviourContextWithFSM<T : State> : BehaviourContext, StatesMachine<T>
Content copied to clipboard
Interface which combine BehaviourContext and StatesMachine. Subcontext of triggers and states contexts must have one common flow of updates and must not lose updates between updates
See also
Types
Functions
copy
Link copied to clipboard
abstract override fun copy(bot: TelegramBot, scope: CoroutineScope, broadcastChannelsSize: Int, onBufferOverflow: BufferOverflow, upstreamUpdatesFlow: Flow<Update>?, updatesFilter: BehaviourContextAndTypeReceiver<Boolean, Update>?): BehaviourContextWithFSM<T>
Content copied to clipboard
execute
Link copied to clipboard
Unsafe execution of incoming request. Can throw almost any exception. So, it is better to use something like dev.inmo.tgbotapi.extensions.utils.shortcuts.executeAsync or dev.inmo.tgbotapi.extensions.utils.shortcuts.executeUnsafe
handle State
Link copied to clipboard
launch State Handling
Link copied to clipboard
open suspend fun launchStateHandling(state: T, handlers: List<CheckableHandlerHolder<in T, T>>): T?
Content copied to clipboard
open suspend fun launchStateHandling(state: T, contextUpdatesFlow: Flow<Update>, handlers: List<BehaviourWithFSMStateHandlerHolder<*, T>>): T?
Content copied to clipboard
start Chain
Link copied to clipboard
Properties
allowedUpdates
Link copied to clipboard
allUpdatesFlow
Link copied to clipboard
allUpdatesWithoutMediaGroupsGroupingFlow
Link copied to clipboard
asUpdateReceiver
Link copied to clipboard
bot
Link copied to clipboard
callbackQueriesFlow
Link copied to clipboard
channelPostMediaGroupsFlow
Link copied to clipboard
abstract val channelPostMediaGroupsFlow: Flow<ChannelPostMediaGroupUpdate>
Content copied to clipboard
channelPostsFlow
Link copied to clipboard
chatJoinRequestUpdateFlow
Link copied to clipboard
chatMemberUpdatesFlow
Link copied to clipboard
chosenInlineResultsFlow
Link copied to clipboard
coroutineContext
Link copied to clipboard
editedChannelPostMediaGroupsFlow
Link copied to clipboard
abstract val editedChannelPostMediaGroupsFlow: Flow<EditChannelPostMediaGroupUpdate>
Content copied to clipboard
editedChannelPostsFlow
Link copied to clipboard
editedMessageMediaGroupsFlow
Link copied to clipboard
abstract val editedMessageMediaGroupsFlow: Flow<EditMessageMediaGroupUpdate>
Content copied to clipboard
editedMessagesFlow
Link copied to clipboard
flowsUpdatesFilter
Link copied to clipboard
inlineQueriesFlow
Link copied to clipboard
messageMediaGroupsFlow
Link copied to clipboard
messagesFlow
Link copied to clipboard
myChatMemberUpdatesFlow
Link copied to clipboard
pollAnswersFlow
Link copied to clipboard
pollsFlow
Link copied to clipboard
preCheckoutQueriesFlow
Link copied to clipboard
shippingQueriesFlow
Link copied to clipboard
unknownUpdatesFlow
Link copied to clipboard
Inheritors
DefaultBehaviourContextWithFSM
Link copied to clipboard
BehaviourContextWithFSMBuilder
Link copied to clipboard