Default Behaviour Context With FSM
class DefaultBehaviourContextWithFSM(behaviourContext: BehaviourContext, statesManager: StatesManager, handlers: List<BehaviourWithFSMStateHandlerHolder<*>>) : BehaviourContext, BehaviourContextWithFSM
Content copied to clipboard
Default realization of BehaviourContextWithFSM. It uses behaviourContext as a base for this object as BehaviourContext, but managing substates contexts updates for avoiding of updates lost between states
Constructors
DefaultBehaviourContextWithFSM
Link copied to clipboard
fun DefaultBehaviourContextWithFSM(behaviourContext: BehaviourContext, statesManager: StatesManager, handlers: List<BehaviourWithFSMStateHandlerHolder<*>>)
Content copied to clipboard
Functions
copy
Link copied to clipboard
open override fun copy(bot: TelegramBot, scope: CoroutineScope, broadcastChannelsSize: Int, onBufferOverflow: BufferOverflow, upstreamUpdatesFlow: Flow<Update>?, updatesFilter: BehaviourContextAndTypeReceiver<Boolean, Update>?): BehaviourContextWithFSM
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
open suspend override fun StatesMachine.handleState(state: State): State?
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
open override val channelPostMediaGroupsFlow: Flow<ChannelPostMediaGroupUpdate>
Content copied to clipboard
channelPostsFlow
Link copied to clipboard
chatMemberUpdatesFlow
Link copied to clipboard
open override val chatMemberUpdatesFlow: Flow<CommonChatMemberUpdatedUpdate>
Content copied to clipboard
chosenInlineResultsFlow
Link copied to clipboard
open override val chosenInlineResultsFlow: Flow<ChosenInlineResultUpdate>
Content copied to clipboard
coroutineContext
Link copied to clipboard
editedChannelPostMediaGroupsFlow
Link copied to clipboard
open override val editedChannelPostMediaGroupsFlow: Flow<EditChannelPostMediaGroupUpdate>
Content copied to clipboard
editedChannelPostsFlow
Link copied to clipboard
editedMessageMediaGroupsFlow
Link copied to clipboard
open override 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
open override val myChatMemberUpdatesFlow: Flow<MyChatMemberUpdatedUpdate>
Content 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