Behaviour Context
interface BehaviourContext : FlowsUpdatesFilter, RequestsExecutor, CoroutineScope
Content copied to clipboard
This class contains all necessary tools for work with bots and especially for buildBehaviour
See also
Functions
copy
Link copied to clipboard
abstract fun copy(bot: TelegramBot = this.bot, scope: CoroutineScope = this.scope, flowsUpdatesFilter: FlowsUpdatesFilter = this.flowsUpdatesFilter): BehaviourContext
Content 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
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
DefaultBehaviourContext
Link copied to clipboard
Extensions
command
Link copied to clipboard
suspend fun BehaviourContext.command(commandRegex: Regex, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
Content copied to clipboard
suspend fun BehaviourContext.command(command: String, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
Content copied to clipboard
doInSubContext
Link copied to clipboard
suspend fun <T> BehaviourContext.doInSubContext(stopOnCompletion: Boolean = true, behaviourContextReceiver: BehaviourContextReceiver<T>): T
Content copied to clipboard
doInSubContextWithFlowsUpdatesFilterSetup
Link copied to clipboard
suspend fun <T> BehaviourContext.doInSubContextWithFlowsUpdatesFilterSetup(newFlowsUpdatesFilterSetUp: BehaviourContextAndTypeReceiver<Unit, FlowsUpdatesFilter>?, stopOnCompletion: Boolean = true, behaviourContextReceiver: BehaviourContextReceiver<T>): T
Content copied to clipboard
Creates new one BehaviourContext, adding subsequent FlowsUpdatesFilter in case newFlowsUpdatesFilterSetUp is provided and CoroutineScope as new BehaviourContext.scope.
doInSubContextWithUpdatesFilter
Link copied to clipboard
suspend fun <T> BehaviourContext.doInSubContextWithUpdatesFilter(updatesFilter: BehaviourContextAndTypeReceiver<Boolean, Update>?, stopOnCompletion: Boolean = true, behaviourContextReceiver: BehaviourContextReceiver<T>): T
Content copied to clipboard
Creates new one BehaviourContext, adding subsequent FlowsUpdatesFilter in case updatesFilter is provided and CoroutineScope as new BehaviourContext.scope
expectFlow
Link copied to clipboard
suspend fun <T> BehaviourContext.expectFlow(initRequest: Request<*>? = null, count: Int? = null, errorFactory: NullableRequestBuilder<*> = { null }, cancelRequestFactory: NullableRequestBuilder<*> = { null }, cancelTrigger: suspend (Update) -> Boolean = { cancelRequestFactory(it) != null }, filter: suspend (Update) -> List<T>): Flow<T>
Content copied to clipboard
expectOne
Link copied to clipboard
suspend fun <T> BehaviourContext.expectOne(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, cancelRequestFactory: NullableRequestBuilder<*> = { null }, cancelTrigger: suspend (Update) -> Boolean = { cancelRequestFactory(it) != null }, filter: suspend (Update) -> T?): T
Content copied to clipboard
onAnimation
Link copied to clipboard
suspend fun BehaviourContext.onAnimation(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<AnimationContent>? = null, markerFactory: MarkerFactory<in CommonMessage<AnimationContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<AnimationContent>>): Job
Content copied to clipboard
onAnyInlineQuery
Link copied to clipboard
suspend fun BehaviourContext.onAnyInlineQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<InlineQuery>? = null, markerFactory: MarkerFactory<in InlineQuery, Any> = ByUserInlineQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineQuery>): Job
Content copied to clipboard
onAudio
Link copied to clipboard
suspend fun BehaviourContext.onAudio(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<AudioContent>? = null, markerFactory: MarkerFactory<in CommonMessage<AudioContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<AudioContent>>): Job
Content copied to clipboard
onAudioMediaGroup
Link copied to clipboard
suspend fun BehaviourContext.onAudioMediaGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<AudioMediaGroupContent>? = null, markerFactory: MarkerFactory<in CommonMessage<AudioMediaGroupContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<AudioMediaGroupContent>>): Job
Content copied to clipboard
onBaseInlineQuery
Link copied to clipboard
suspend fun BehaviourContext.onBaseInlineQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<BaseInlineQuery>? = null, markerFactory: MarkerFactory<in BaseInlineQuery, Any> = ByUserInlineQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, BaseInlineQuery>): Job
Content copied to clipboard
onChannelChatCreated
Link copied to clipboard
suspend fun BehaviourContext.onChannelChatCreated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<ChannelChatCreated>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<ChannelChatCreated>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ChannelChatCreated>>): Job
Content copied to clipboard
onChannelEvent
Link copied to clipboard
suspend fun BehaviourContext.onChannelEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<ChannelEvent>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<ChannelEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ChannelEvent>>): Job
Content copied to clipboard
onChatEvent
Link copied to clipboard
suspend fun BehaviourContext.onChatEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<ChatEvent>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<ChatEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ChatEvent>>): Job
Content copied to clipboard
onChatMemberUpdated
Link copied to clipboard
suspend fun BehaviourContext.onChatMemberUpdated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatMemberUpdated>? = null, markerFactory: MarkerFactory<ChatMemberUpdated, Any> = ByChatChatMemberUpdatedMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatMemberUpdated>): Job
Content copied to clipboard
onCommand
Link copied to clipboard
inline suspend fun BehaviourContext.onCommand(commandRegex: Regex, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, noinline additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, noinline scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
Content copied to clipboard
inline suspend fun BehaviourContext.onCommand(command: String, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, noinline additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, noinline scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
Content copied to clipboard
onCommonChatMemberUpdated
Link copied to clipboard
suspend fun BehaviourContext.onCommonChatMemberUpdated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatMemberUpdated>? = null, markerFactory: MarkerFactory<ChatMemberUpdated, Any> = ByChatChatMemberUpdatedMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatMemberUpdated>): Job
Content copied to clipboard
onCommonEvent
Link copied to clipboard
suspend fun BehaviourContext.onCommonEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<CommonEvent>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<CommonEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<CommonEvent>>): Job
Content copied to clipboard
onContact
Link copied to clipboard
suspend fun BehaviourContext.onContact(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<ContactContent>? = null, markerFactory: MarkerFactory<in CommonMessage<ContactContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<ContactContent>>): Job
Content copied to clipboard
onContentMessage
Link copied to clipboard
suspend fun BehaviourContext.onContentMessage(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<MessageContent>? = null, includeMediaGroups: Boolean = true, markerFactory: MarkerFactory<in CommonMessage<MessageContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<MessageContent>>): Job
Content copied to clipboard
onDataCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.onDataCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<DataCallbackQuery>? = null, markerFactory: MarkerFactory<in DataCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, DataCallbackQuery>): Job
Content copied to clipboard
onDeleteChatPhoto
Link copied to clipboard
suspend fun BehaviourContext.onDeleteChatPhoto(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<DeleteChatPhoto>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<DeleteChatPhoto>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<DeleteChatPhoto>>): Job
Content copied to clipboard
onDice
Link copied to clipboard
suspend fun BehaviourContext.onDice(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<DiceContent>? = null, markerFactory: MarkerFactory<in CommonMessage<DiceContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<DiceContent>>): Job
Content copied to clipboard
onDocument
Link copied to clipboard
suspend fun BehaviourContext.onDocument(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<DocumentContent>? = null, markerFactory: MarkerFactory<in CommonMessage<DocumentContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<DocumentContent>>): Job
Content copied to clipboard
onDocumentMediaGroupContent
Link copied to clipboard
suspend fun BehaviourContext.onDocumentMediaGroupContent(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = true, additionalFilter: CommonMessageFilter<DocumentMediaGroupContent>? = null, markerFactory: MarkerFactory<in CommonMessage<DocumentMediaGroupContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<DocumentMediaGroupContent>>): Job
Content copied to clipboard
onDocumentsGroup
Link copied to clipboard
suspend fun BehaviourContext.onDocumentsGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<List<MediaGroupMessage<DocumentMediaGroupContent>>>? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<DocumentMediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<DocumentMediaGroupContent>>>): Job
Content copied to clipboard
oneOfActions
Link copied to clipboard
suspend fun <O> BehaviourContext.oneOfActions(deferredActions: Iterable<DeferredAction<*, O>>): O
Content copied to clipboard
suspend fun <O> BehaviourContext.oneOfActions(vararg deferredActions: DeferredAction<*, O>): O
Content copied to clipboard
onGame
Link copied to clipboard
suspend fun BehaviourContext.onGame(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<GameContent>? = null, markerFactory: MarkerFactory<in CommonMessage<GameContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<GameContent>>): Job
Content copied to clipboard
onGameShortNameCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.onGameShortNameCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<GameShortNameCallbackQuery>? = null, markerFactory: MarkerFactory<in GameShortNameCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, GameShortNameCallbackQuery>): Job
Content copied to clipboard
onGroupChatCreated
Link copied to clipboard
suspend fun BehaviourContext.onGroupChatCreated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<GroupChatCreated>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<GroupChatCreated>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<GroupChatCreated>>): Job
Content copied to clipboard
onGroupEvent
Link copied to clipboard
suspend fun BehaviourContext.onGroupEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<GroupEvent>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<GroupEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<GroupEvent>>): Job
Content copied to clipboard
onInlineMessageIdCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.onInlineMessageIdCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<InlineMessageIdCallbackQuery>? = null, markerFactory: MarkerFactory<in InlineMessageIdCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineMessageIdCallbackQuery>): Job
Content copied to clipboard
onInlineMessageIdDataCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.onInlineMessageIdDataCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<InlineMessageIdDataCallbackQuery>? = null, markerFactory: MarkerFactory<in InlineMessageIdDataCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineMessageIdDataCallbackQuery>): Job
Content copied to clipboard
onInlineMessageIdGameShortNameCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.onInlineMessageIdGameShortNameCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<InlineMessageIdGameShortNameCallbackQuery>? = null, markerFactory: MarkerFactory<in InlineMessageIdGameShortNameCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineMessageIdGameShortNameCallbackQuery>): Job
Content copied to clipboard
onInvoice
Link copied to clipboard
suspend fun BehaviourContext.onInvoice(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<InvoiceContent>? = null, markerFactory: MarkerFactory<in CommonMessage<InvoiceContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<InvoiceContent>>): Job
Content copied to clipboard
onLeftChatMember
Link copied to clipboard
suspend fun BehaviourContext.onLeftChatMember(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<LeftChatMember>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<LeftChatMember>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<LeftChatMember>>): Job
Content copied to clipboard
onLocation
Link copied to clipboard
suspend fun BehaviourContext.onLocation(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<LocationContent>? = null, markerFactory: MarkerFactory<in CommonMessage<LocationContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<LocationContent>>): Job
Content copied to clipboard
onLocationInlineQuery
Link copied to clipboard
suspend fun BehaviourContext.onLocationInlineQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<LocationInlineQuery>? = null, markerFactory: MarkerFactory<in LocationInlineQuery, Any> = ByUserInlineQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, LocationInlineQuery>): Job
Content copied to clipboard
onMedia
Link copied to clipboard
suspend fun BehaviourContext.onMedia(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = true, additionalFilter: CommonMessageFilter<MediaContent>? = null, markerFactory: MarkerFactory<in CommonMessage<MediaContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<MediaContent>>): Job
Content copied to clipboard
onMediaCollection
Link copied to clipboard
suspend fun BehaviourContext.onMediaCollection(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: SimpleFilter<CommonMessage<MediaCollectionContent<TelegramMediaFile>>>? = null, markerFactory: MarkerFactory<in CommonMessage<MediaCollectionContent<TelegramMediaFile>>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<MediaCollectionContent<TelegramMediaFile>>>): Job
Content copied to clipboard
onMediaGroup
Link copied to clipboard
suspend fun BehaviourContext.onMediaGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<List<MediaGroupMessage<MediaGroupContent>>>? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<MediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<MediaGroupContent>>>): Job
Content copied to clipboard
onMessageAutoDeleteTimerChangedEvent
Link copied to clipboard
suspend fun BehaviourContext.onMessageAutoDeleteTimerChangedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<MessageAutoDeleteTimerChanged>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<MessageAutoDeleteTimerChanged>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<MessageAutoDeleteTimerChanged>>): Job
Content copied to clipboard
onMessageCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.onMessageCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<MessageCallbackQuery>? = null, markerFactory: MarkerFactory<in MessageCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, MessageCallbackQuery>): Job
Content copied to clipboard
onMessageDataCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.onMessageDataCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<MessageDataCallbackQuery>? = null, markerFactory: MarkerFactory<in MessageDataCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, MessageDataCallbackQuery>): Job
Content copied to clipboard
onMessageGameShortNameCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.onMessageGameShortNameCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<MessageGameShortNameCallbackQuery>? = null, markerFactory: MarkerFactory<in MessageGameShortNameCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, MessageGameShortNameCallbackQuery>): Job
Content copied to clipboard
onMyChatMemberUpdated
Link copied to clipboard
suspend fun BehaviourContext.onMyChatMemberUpdated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatMemberUpdated>? = null, markerFactory: MarkerFactory<ChatMemberUpdated, Any> = ByChatChatMemberUpdatedMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatMemberUpdated>): Job
Content copied to clipboard
onNewChatMembers
Link copied to clipboard
suspend fun BehaviourContext.onNewChatMembers(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<NewChatMembers>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<NewChatMembers>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<NewChatMembers>>): Job
Content copied to clipboard
onNewChatPhoto
Link copied to clipboard
suspend fun BehaviourContext.onNewChatPhoto(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<NewChatPhoto>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<NewChatPhoto>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<NewChatPhoto>>): Job
Content copied to clipboard
onNewChatTitle
Link copied to clipboard
suspend fun BehaviourContext.onNewChatTitle(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<NewChatTitle>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<NewChatTitle>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<NewChatTitle>>): Job
Content copied to clipboard
onPassportMessage
Link copied to clipboard
suspend fun BehaviourContext.onPassportMessage(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<PassportMessage>? = null, markerFactory: MarkerFactory<in PassportMessage, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, PassportMessage>): Job
Content copied to clipboard
onPhoto
Link copied to clipboard
suspend fun BehaviourContext.onPhoto(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<PhotoContent>? = null, markerFactory: MarkerFactory<in CommonMessage<PhotoContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<PhotoContent>>): Job
Content copied to clipboard
onPhotoGallery
Link copied to clipboard
suspend fun BehaviourContext.onPhotoGallery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<List<MediaGroupMessage<PhotoContent>>>? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<PhotoContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<PhotoContent>>>): Job
Content copied to clipboard
onPinnedMessage
Link copied to clipboard
suspend fun BehaviourContext.onPinnedMessage(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<PinnedMessage>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<PinnedMessage>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<PinnedMessage>>): Job
Content copied to clipboard
onPlaylist
Link copied to clipboard
suspend fun BehaviourContext.onPlaylist(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<List<MediaGroupMessage<AudioMediaGroupContent>>>? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<AudioMediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<AudioMediaGroupContent>>>): Job
Content copied to clipboard
onPoll
Link copied to clipboard
suspend fun BehaviourContext.onPoll(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<PollContent>? = null, markerFactory: MarkerFactory<in CommonMessage<PollContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<PollContent>>): Job
Content copied to clipboard
onProximityAlertTriggered
Link copied to clipboard
suspend fun BehaviourContext.onProximityAlertTriggered(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<ProximityAlertTriggered>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<ProximityAlertTriggered>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ProximityAlertTriggered>>): Job
Content copied to clipboard
onSticker
Link copied to clipboard
suspend fun BehaviourContext.onSticker(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<StickerContent>? = null, markerFactory: MarkerFactory<in CommonMessage<StickerContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<StickerContent>>): Job
Content copied to clipboard
onSupergroupChatCreated
Link copied to clipboard
suspend fun BehaviourContext.onSupergroupChatCreated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<SupergroupChatCreated>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<SupergroupChatCreated>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<SupergroupChatCreated>>): Job
Content copied to clipboard
onSupergroupEvent
Link copied to clipboard
suspend fun BehaviourContext.onSupergroupEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<SupergroupEvent>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<SupergroupEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<SupergroupEvent>>): Job
Content copied to clipboard
onText
Link copied to clipboard
suspend fun BehaviourContext.onText(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
Content copied to clipboard
onUnknownCallbackQueryType
Link copied to clipboard
suspend fun BehaviourContext.onUnknownCallbackQueryType(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<UnknownCallbackQueryType>? = null, markerFactory: MarkerFactory<in UnknownCallbackQueryType, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, UnknownCallbackQueryType>): Job
Content copied to clipboard
onVenue
Link copied to clipboard
suspend fun BehaviourContext.onVenue(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<VenueContent>? = null, markerFactory: MarkerFactory<in CommonMessage<VenueContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VenueContent>>): Job
Content copied to clipboard
onVideo
Link copied to clipboard
suspend fun BehaviourContext.onVideo(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<VideoContent>? = null, markerFactory: MarkerFactory<in CommonMessage<VideoContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VideoContent>>): Job
Content copied to clipboard
onVideoGallery
Link copied to clipboard
suspend fun BehaviourContext.onVideoGallery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<List<MediaGroupMessage<VideoContent>>>? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<VideoContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<VideoContent>>>): Job
Content copied to clipboard
onVideoNote
Link copied to clipboard
suspend fun BehaviourContext.onVideoNote(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<VideoNoteContent>? = null, markerFactory: MarkerFactory<in CommonMessage<VideoNoteContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VideoNoteContent>>): Job
Content copied to clipboard
onVisualGallery
Link copied to clipboard
suspend fun BehaviourContext.onVisualGallery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<List<MediaGroupMessage<VisualMediaGroupContent>>>? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<VisualMediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<VisualMediaGroupContent>>>): Job
Content copied to clipboard
onVisualMediaGroup
Link copied to clipboard
suspend fun BehaviourContext.onVisualMediaGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<List<MediaGroupMessage<VisualMediaGroupContent>>>? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<VisualMediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<VisualMediaGroupContent>>>): Job
Content copied to clipboard
onVoice
Link copied to clipboard
suspend fun BehaviourContext.onVoice(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<VoiceContent>? = null, markerFactory: MarkerFactory<in CommonMessage<VoiceContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VoiceContent>>): Job
Content copied to clipboard
onVoiceChatEndedEvent
Link copied to clipboard
suspend fun BehaviourContext.onVoiceChatEndedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<VoiceChatEnded>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<VoiceChatEnded>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatEnded>>): Job
Content copied to clipboard
onVoiceChatEvent
Link copied to clipboard
suspend fun BehaviourContext.onVoiceChatEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<VoiceChatEvent>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<VoiceChatEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatEvent>>): Job
Content copied to clipboard
onVoiceChatParticipantsInvitedEvent
Link copied to clipboard
suspend fun BehaviourContext.onVoiceChatParticipantsInvitedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<VoiceChatParticipantsInvited>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<VoiceChatParticipantsInvited>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatParticipantsInvited>>): Job
Content copied to clipboard
onVoiceChatStartedEvent
Link copied to clipboard
suspend fun BehaviourContext.onVoiceChatStartedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: SimpleFilter<ChatEventMessage<VoiceChatStarted>>? = null, markerFactory: MarkerFactory<in ChatEventMessage<VoiceChatStarted>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatStarted>>): Job
Content copied to clipboard
parallel
Link copied to clipboard
suspend fun <T> BehaviourContext.parallel(action: BehaviourContextReceiver<T>): Deferred<T>
Content copied to clipboard
stop
Link copied to clipboard
waitAnimation
Link copied to clipboard
suspend fun BehaviourContext.waitAnimation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<AnimationContent>>? = null, mapper: CommonMessageToContentMapper<AnimationContent>? = null): List<AnimationContent>
Content copied to clipboard
waitAnyInlineQuery
Link copied to clipboard
suspend fun BehaviourContext.waitAnyInlineQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<InlineQuery>? = null, mapper: InlineQueryMapper<InlineQuery>? = null): List<InlineQuery>
Content copied to clipboard
waitAnyMediaGroupContent
Link copied to clipboard
suspend fun BehaviourContext.waitAnyMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter<CommonMessage<MediaGroupContent>>? = null, mapper: CommonMessageToContentMapper<MediaGroupContent>? = null): List<MediaGroupContent>
Content copied to clipboard
waitAnyPassportMessages
Link copied to clipboard
suspend fun BehaviourContext.waitAnyPassportMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<PassportMessage>? = null, mapper: PassportMessageMapper? = null): List<PassportData>
Content copied to clipboard
waitAudio
Link copied to clipboard
suspend fun BehaviourContext.waitAudio(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter<CommonMessage<AudioContent>>? = null, mapper: CommonMessageToContentMapper<AudioContent>? = null): List<AudioContent>
Content copied to clipboard
waitAudioMediaGroupContent
Link copied to clipboard
suspend fun BehaviourContext.waitAudioMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter<CommonMessage<AudioMediaGroupContent>>? = null, mapper: CommonMessageToContentMapper<AudioMediaGroupContent>? = null): List<AudioMediaGroupContent>
Content copied to clipboard
waitBaseInlineQuery
Link copied to clipboard
suspend fun BehaviourContext.waitBaseInlineQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<BaseInlineQuery>? = null, mapper: InlineQueryMapper<BaseInlineQuery>? = null): List<BaseInlineQuery>
Content copied to clipboard
waitChannelChatCreatedEvents
Link copied to clipboard
suspend fun BehaviourContext.waitChannelChatCreatedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<ChannelChatCreated>>? = null, mapper: EventMessageToEventMapper<ChannelChatCreated>? = null): List<ChannelChatCreated>
Content copied to clipboard
waitChannelEvents
Link copied to clipboard
suspend fun BehaviourContext.waitChannelEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<ChannelEvent>>? = null, mapper: EventMessageToEventMapper<ChannelEvent>? = null): List<ChannelEvent>
Content copied to clipboard
waitChatEvents
Link copied to clipboard
suspend fun BehaviourContext.waitChatEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<ChatEvent>>? = null, mapper: EventMessageToEventMapper<ChatEvent>? = null): List<ChatEvent>
Content copied to clipboard
waitChatMemberUpdated
Link copied to clipboard
suspend fun BehaviourContext.waitChatMemberUpdated(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatMemberUpdatedUpdate>? = null, mapper: ChatMemberUpdatedMapper<ChatMemberUpdated>? = null): List<ChatMemberUpdated>
Content copied to clipboard
waitCommonChatMemberUpdated
Link copied to clipboard
suspend fun BehaviourContext.waitCommonChatMemberUpdated(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonChatMemberUpdatedUpdate>? = null, mapper: ChatMemberUpdatedMapper<ChatMemberUpdated>? = null): List<ChatMemberUpdated>
Content copied to clipboard
waitCommonEvents
Link copied to clipboard
suspend fun BehaviourContext.waitCommonEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<CommonEvent>>? = null, mapper: EventMessageToEventMapper<CommonEvent>? = null): List<CommonEvent>
Content copied to clipboard
waitContact
Link copied to clipboard
suspend fun BehaviourContext.waitContact(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<ContactContent>>? = null, mapper: CommonMessageToContentMapper<ContactContent>? = null): List<ContactContent>
Content copied to clipboard
waitContentMessage
Link copied to clipboard
suspend fun BehaviourContext.waitContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter<CommonMessage<MessageContent>>? = null, mapper: CommonMessageToContentMapper<MessageContent>? = null): List<MessageContent>
Content copied to clipboard
waitDataCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.waitDataCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<DataCallbackQuery>? = null, mapper: CallbackQueryMapper<DataCallbackQuery>? = null): List<DataCallbackQuery>
Content copied to clipboard
waitDeleteChatPhotoEvents
Link copied to clipboard
suspend fun BehaviourContext.waitDeleteChatPhotoEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<DeleteChatPhoto>>? = null, mapper: EventMessageToEventMapper<DeleteChatPhoto>? = null): List<DeleteChatPhoto>
Content copied to clipboard
waitDice
Link copied to clipboard
suspend fun BehaviourContext.waitDice(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<DiceContent>>? = null, mapper: CommonMessageToContentMapper<DiceContent>? = null): List<DiceContent>
Content copied to clipboard
waitDocument
Link copied to clipboard
suspend fun BehaviourContext.waitDocument(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter<CommonMessage<DocumentContent>>? = null, mapper: CommonMessageToContentMapper<DocumentContent>? = null): List<DocumentContent>
Content copied to clipboard
waitDocumentMediaGroupContent
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter<CommonMessage<DocumentMediaGroupContent>>? = null, mapper: CommonMessageToContentMapper<DocumentMediaGroupContent>? = null): List<DocumentMediaGroupContent>
Content copied to clipboard
waitDocumentsGroup
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentsGroup(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: MediaGroupFilter<DocumentMediaGroupContent>? = null): List<List<DocumentMediaGroupContent>>
Content copied to clipboard
waitGame
Link copied to clipboard
suspend fun BehaviourContext.waitGame(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<GameContent>>? = null, mapper: CommonMessageToContentMapper<GameContent>? = null): List<GameContent>
Content copied to clipboard
waitGameShortNameCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.waitGameShortNameCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<GameShortNameCallbackQuery>? = null, mapper: CallbackQueryMapper<GameShortNameCallbackQuery>? = null): List<GameShortNameCallbackQuery>
Content copied to clipboard
waitGroupChatCreatedEvents
Link copied to clipboard
suspend fun BehaviourContext.waitGroupChatCreatedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<GroupChatCreated>>? = null, mapper: EventMessageToEventMapper<GroupChatCreated>? = null): List<GroupChatCreated>
Content copied to clipboard
waitGroupEvents
Link copied to clipboard
suspend fun BehaviourContext.waitGroupEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<GroupEvent>>? = null, mapper: EventMessageToEventMapper<GroupEvent>? = null): List<GroupEvent>
Content copied to clipboard
waitInlineMessageIdCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.waitInlineMessageIdCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<InlineMessageIdCallbackQuery>? = null, mapper: CallbackQueryMapper<InlineMessageIdCallbackQuery>? = null): List<InlineMessageIdCallbackQuery>
Content copied to clipboard
waitInlineMessageIdDataCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.waitInlineMessageIdDataCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<InlineMessageIdDataCallbackQuery>? = null, mapper: CallbackQueryMapper<InlineMessageIdDataCallbackQuery>? = null): List<InlineMessageIdDataCallbackQuery>
Content copied to clipboard
waitInlineMessageIdGameShortNameCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.waitInlineMessageIdGameShortNameCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<InlineMessageIdGameShortNameCallbackQuery>? = null, mapper: CallbackQueryMapper<InlineMessageIdGameShortNameCallbackQuery>? = null): List<InlineMessageIdGameShortNameCallbackQuery>
Content copied to clipboard
waitInvoice
Link copied to clipboard
suspend fun BehaviourContext.waitInvoice(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<InvoiceContent>>? = null, mapper: CommonMessageToContentMapper<InvoiceContent>? = null): List<InvoiceContent>
Content copied to clipboard
waitLeftChatMemberEvents
Link copied to clipboard
suspend fun BehaviourContext.waitLeftChatMemberEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<LeftChatMember>>? = null, mapper: EventMessageToEventMapper<LeftChatMember>? = null): List<LeftChatMember>
Content copied to clipboard
waitLocation
Link copied to clipboard
suspend fun BehaviourContext.waitLocation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<LocationContent>>? = null, mapper: CommonMessageToContentMapper<LocationContent>? = null): List<LocationContent>
Content copied to clipboard
waitLocationInlineQuery
Link copied to clipboard
suspend fun BehaviourContext.waitLocationInlineQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<LocationInlineQuery>? = null, mapper: InlineQueryMapper<LocationInlineQuery>? = null): List<LocationInlineQuery>
Content copied to clipboard
waitMedia
Link copied to clipboard
suspend fun BehaviourContext.waitMedia(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter<CommonMessage<MediaContent>>? = null, mapper: CommonMessageToContentMapper<MediaContent>? = null): List<MediaContent>
Content copied to clipboard
waitMediaGroup
Link copied to clipboard
suspend fun BehaviourContext.waitMediaGroup(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: MediaGroupFilter<MediaGroupContent>? = null): List<List<MediaGroupContent>>
Content copied to clipboard
waitMessageAutoDeleteTimerChangedEvents
Link copied to clipboard
suspend fun BehaviourContext.waitMessageAutoDeleteTimerChangedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<MessageAutoDeleteTimerChanged>>? = null, mapper: EventMessageToEventMapper<MessageAutoDeleteTimerChanged>? = null): List<MessageAutoDeleteTimerChanged>
Content copied to clipboard
waitMessageCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.waitMessageCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<MessageCallbackQuery>? = null, mapper: CallbackQueryMapper<MessageCallbackQuery>? = null): List<MessageCallbackQuery>
Content copied to clipboard
waitMessageDataCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.waitMessageDataCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<MessageDataCallbackQuery>? = null, mapper: CallbackQueryMapper<MessageDataCallbackQuery>? = null): List<MessageDataCallbackQuery>
Content copied to clipboard
waitMessageGameShortNameCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.waitMessageGameShortNameCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<MessageGameShortNameCallbackQuery>? = null, mapper: CallbackQueryMapper<MessageGameShortNameCallbackQuery>? = null): List<MessageGameShortNameCallbackQuery>
Content copied to clipboard
waitMyChatMemberUpdated
Link copied to clipboard
suspend fun BehaviourContext.waitMyChatMemberUpdated(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<MyChatMemberUpdatedUpdate>? = null, mapper: ChatMemberUpdatedMapper<ChatMemberUpdated>? = null): List<ChatMemberUpdated>
Content copied to clipboard
waitNewChatMembersEvents
Link copied to clipboard
suspend fun BehaviourContext.waitNewChatMembersEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<NewChatMembers>>? = null, mapper: EventMessageToEventMapper<NewChatMembers>? = null): List<NewChatMembers>
Content copied to clipboard
waitNewChatPhotoEvents
Link copied to clipboard
suspend fun BehaviourContext.waitNewChatPhotoEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<NewChatPhoto>>? = null, mapper: EventMessageToEventMapper<NewChatPhoto>? = null): List<NewChatPhoto>
Content copied to clipboard
waitNewChatTitleEvents
Link copied to clipboard
suspend fun BehaviourContext.waitNewChatTitleEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<NewChatTitle>>? = null, mapper: EventMessageToEventMapper<NewChatTitle>? = null): List<NewChatTitle>
Content copied to clipboard
waitPassportMessages
Link copied to clipboard
suspend fun <O> BehaviourContext.waitPassportMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<PassportMessage>? = null, mapper: suspend PassportMessage.() -> O?): List<O>
Content copied to clipboard
waitPassportMessagesWith
Link copied to clipboard
inline suspend fun <T : EncryptedPassportElement> BehaviourContext.waitPassportMessagesWith(count: Int = 1, initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }, noinline filter: SimpleFilter<PassportMessage>? = null, noinline mapper: PassportMessageMapper? = null): List<PassportData>
Content copied to clipboard
waitPhoto
Link copied to clipboard
suspend fun BehaviourContext.waitPhoto(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter<CommonMessage<PhotoContent>>? = null, mapper: CommonMessageToContentMapper<PhotoContent>? = null): List<PhotoContent>
Content copied to clipboard
waitPhotoGallery
Link copied to clipboard
suspend fun BehaviourContext.waitPhotoGallery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: MediaGroupFilter<PhotoContent>? = null): List<List<PhotoContent>>
Content copied to clipboard
waitPinnedMessageEvents
Link copied to clipboard
suspend fun BehaviourContext.waitPinnedMessageEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<PinnedMessage>>? = null, mapper: EventMessageToEventMapper<PinnedMessage>? = null): List<PinnedMessage>
Content copied to clipboard
waitPlaylist
Link copied to clipboard
suspend fun BehaviourContext.waitPlaylist(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: MediaGroupFilter<AudioMediaGroupContent>? = null): List<List<AudioMediaGroupContent>>
Content copied to clipboard
waitPoll
Link copied to clipboard
suspend fun BehaviourContext.waitPoll(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<PollContent>>? = null, mapper: CommonMessageToContentMapper<PollContent>? = null): List<PollContent>
Content copied to clipboard
waitProximityAlertTriggeredEvents
Link copied to clipboard
suspend fun BehaviourContext.waitProximityAlertTriggeredEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<ProximityAlertTriggered>>? = null, mapper: EventMessageToEventMapper<ProximityAlertTriggered>? = null): List<ProximityAlertTriggered>
Content copied to clipboard
waitSticker
Link copied to clipboard
suspend fun BehaviourContext.waitSticker(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<StickerContent>>? = null, mapper: CommonMessageToContentMapper<StickerContent>? = null): List<StickerContent>
Content copied to clipboard
waitSupergroupChatCreatedEvents
Link copied to clipboard
suspend fun BehaviourContext.waitSupergroupChatCreatedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<SupergroupChatCreated>>? = null, mapper: EventMessageToEventMapper<SupergroupChatCreated>? = null): List<SupergroupChatCreated>
Content copied to clipboard
waitSupergroupEvents
Link copied to clipboard
suspend fun BehaviourContext.waitSupergroupEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<SupergroupEvent>>? = null, mapper: EventMessageToEventMapper<SupergroupEvent>? = null): List<SupergroupEvent>
Content copied to clipboard
waitText
Link copied to clipboard
suspend fun BehaviourContext.waitText(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<TextContent>>? = null, mapper: CommonMessageToContentMapper<TextContent>? = null): List<TextContent>
Content copied to clipboard
waitUnknownCallbackQuery
Link copied to clipboard
suspend fun BehaviourContext.waitUnknownCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<UnknownCallbackQueryType>? = null, mapper: CallbackQueryMapper<UnknownCallbackQueryType>? = null): List<UnknownCallbackQueryType>
Content copied to clipboard
waitVenue
Link copied to clipboard
suspend fun BehaviourContext.waitVenue(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<VenueContent>>? = null, mapper: CommonMessageToContentMapper<VenueContent>? = null): List<VenueContent>
Content copied to clipboard
waitVideo
Link copied to clipboard
suspend fun BehaviourContext.waitVideo(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter<CommonMessage<VideoContent>>? = null, mapper: CommonMessageToContentMapper<VideoContent>? = null): List<VideoContent>
Content copied to clipboard
waitVideoGallery
Link copied to clipboard
suspend fun BehaviourContext.waitVideoGallery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: MediaGroupFilter<VideoContent>? = null): List<List<VideoContent>>
Content copied to clipboard
waitVideoNote
Link copied to clipboard
suspend fun BehaviourContext.waitVideoNote(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<VideoNoteContent>>? = null, mapper: CommonMessageToContentMapper<VideoNoteContent>? = null): List<VideoNoteContent>
Content copied to clipboard
waitVisualGallery
Link copied to clipboard
suspend fun BehaviourContext.waitVisualGallery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: MediaGroupFilter<VisualMediaGroupContent>? = null): List<List<VisualMediaGroupContent>>
Content copied to clipboard
waitVisualMediaGroupContent
Link copied to clipboard
suspend fun BehaviourContext.waitVisualMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter<CommonMessage<VisualMediaGroupContent>>? = null, mapper: CommonMessageToContentMapper<VisualMediaGroupContent>? = null): List<VisualMediaGroupContent>
Content copied to clipboard
waitVoice
Link copied to clipboard
suspend fun BehaviourContext.waitVoice(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<CommonMessage<VoiceContent>>? = null, mapper: CommonMessageToContentMapper<VoiceContent>? = null): List<VoiceContent>
Content copied to clipboard
waitVoiceChatEndedEvents
Link copied to clipboard
suspend fun BehaviourContext.waitVoiceChatEndedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<VoiceChatEnded>>? = null, mapper: EventMessageToEventMapper<VoiceChatEnded>? = null): List<VoiceChatEnded>
Content copied to clipboard
waitVoiceChatEvents
Link copied to clipboard
suspend fun BehaviourContext.waitVoiceChatEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<VoiceChatEvent>>? = null, mapper: EventMessageToEventMapper<VoiceChatEvent>? = null): List<VoiceChatEvent>
Content copied to clipboard
waitVoiceChatParticipantsInvitedEvents
Link copied to clipboard
suspend fun BehaviourContext.waitVoiceChatParticipantsInvitedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<VoiceChatParticipantsInvited>>? = null, mapper: EventMessageToEventMapper<VoiceChatParticipantsInvited>? = null): List<VoiceChatParticipantsInvited>
Content copied to clipboard
waitVoiceChatStartedEvents
Link copied to clipboard
suspend fun BehaviourContext.waitVoiceChatStartedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, count: Int = 1, filter: SimpleFilter<ChatEventMessage<VoiceChatStarted>>? = null, mapper: EventMessageToEventMapper<VoiceChatStarted>? = null): List<VoiceChatStarted>
Content copied to clipboard