Package-level declarations
Types
This class contains all necessary tools for work with bots and especially buildBehaviour
Contains SubActions which will be used in subcontextInitialAction in order they has been passed in subactions.
Properties
This function is used in buildBehaviour extensions to provide default CoroutineScope and allow to avoid all unnecessary parameters except of block
Functions
Use this method in case you wish to make some additional actions with flowUpdatesFilter.
Use this method to build bot behaviour and run it via long polling. In case you wish to get FlowsUpdatesFilter for additional manipulations, you must provide external FlowsUpdatesFilter in other buildBehaviour function.
Build CombinedSubcontextInitialAction with block and return callback, which appropriate for BehaviourContext builders with subcontextInitialAction
argument
Build CombinedSubcontextInitialAction with block and return callback, which appropriate for BehaviourContext builders with subcontextInitialAction
argument
Creates new BehaviourContext using its BehaviourContext.copy method
Uses createSubContextAndDoSynchronouslyWithUpdatesFilter, but wrapping it in async. That means, that execution of this function will be asynchronous and will not block execution of code by default
Creates new one BehaviourContext using createSubContext and launches behaviourContextReceiver in a new context using doInContext.
It is just backward compatibility function which will be removed in next updates.
Launch behaviourContextReceiver in context of this as BehaviourContext and as kotlin.coroutines.CoroutineContext
This method will cancel ALL subsequent contexts, expectations and waiters
Create bot using telegramBot and start listening for updates using buildBehaviour. Use this method in case you wish to make some additional actions with flowsUpdatesFilter.
Create bot using telegramBot and start listening for updates using buildBehaviourWithLongPolling. Use this method in case you wish to make some additional actions with flowsUpdatesFilter.