Package-level declarations
Types
This class contains all necessary tools for work with bots and especially buildBehaviour
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.
Creates new BehaviourContext using its BehaviourContext.copy method
Creates new one BehaviourContext using createSubContext and launches behaviourContextReceiver in a new context using doInContext
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.