1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-27 04:28:44 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.md
2021-03-17 15:18:37 +00:00

361 KiB

//docs/dev.inmo.tgbotapi.extensions.behaviour_builder/BehaviourContext

BehaviourContext

[common] data class BehaviourContext(bot: TelegramBot, scope: , flowsUpdatesFilter: FlowsUpdatesFilter) : FlowsUpdatesFilter, RequestsExecutor,

This class contains all necessary tools for work with bots and especially for buildBehaviour

Parameters

common

scope

This param will be used for creating of some subscriptions inside of methods, updates listening and different other things in context of working with and coroutines.

flowsUpdatesFilter

This parameter will be used to subscribe on different types of update

Constructors

BehaviourContext [common] fun BehaviourContext(bot: TelegramBot, scope: , flowsUpdatesFilter: FlowsUpdatesFilter = FlowsUpdatesFilter())This param will be used for creating of some subscriptions inside of methods, updates listening and different other things in context of working with and coroutines.

Functions

Name Summary
close [common]
Content
open override fun close()


execute [common]
Content
open suspend override fun < : Any> execute(request: Request<>):
More info
Unsafe execution of incoming .


Properties

Name Summary
allowedUpdates [common] open override val allowedUpdates: List<String>
allUpdatesFlow [common] open override val allUpdatesFlow: <Update>
allUpdatesWithoutMediaGroupsGroupingFlow [common] open override val allUpdatesWithoutMediaGroupsGroupingFlow: <Update>
asUpdateReceiver [common] open override val asUpdateReceiver: UpdateReceiver<Update>
bot [common] val bot: TelegramBot
callbackQueryFlow [common] open override val callbackQueryFlow: <CallbackQueryUpdate>
channelPostFlow [common] open override val channelPostFlow: <ChannelPostUpdate>
channelPostMediaGroupFlow [common] open override val channelPostMediaGroupFlow: <ChannelPostMediaGroupUpdate>
chatMemberUpdatedFlow [common] open override val chatMemberUpdatedFlow: <CommonChatMemberUpdatedUpdate>
chosenInlineResultFlow [common] open override val chosenInlineResultFlow: <ChosenInlineResultUpdate>
coroutineContext [common] open override val coroutineContext: CoroutineContext
editedChannelPostFlow [common] open override val editedChannelPostFlow: <EditChannelPostUpdate>
editedChannelPostMediaGroupFlow [common] open override val editedChannelPostMediaGroupFlow: <EditChannelPostMediaGroupUpdate>
editedMessageFlow [common] open override val editedMessageFlow: <EditMessageUpdate>
editedMessageMediaGroupFlow [common] open override val editedMessageMediaGroupFlow: <EditMessageMediaGroupUpdate>
flowsUpdatesFilter [common] val flowsUpdatesFilter: FlowsUpdatesFilterThis parameter will be used to subscribe on different types of update
inlineQueryFlow [common] open override val inlineQueryFlow: <InlineQueryUpdate>
messageFlow [common] open override val messageFlow: <MessageUpdate>
messageMediaGroupFlow [common] open override val messageMediaGroupFlow: <MessageMediaGroupUpdate>
myChatMemberUpdatedFlow [common] open override val myChatMemberUpdatedFlow: <MyChatMemberUpdatedUpdate>
pollAnswerFlow [common] open override val pollAnswerFlow: <PollAnswerUpdate>
pollFlow [common] open override val pollFlow: <PollUpdate>
preCheckoutQueryFlow [common] open override val preCheckoutQueryFlow: <PreCheckoutQueryUpdate>
scope [common] val scope: This param will be used for creating of some subscriptions inside of methods, updates listening and different other things in context of working with and coroutines.
shippingQueryFlow [common] open override val shippingQueryFlow: <ShippingQueryUpdate>
unknownUpdateTypeFlow [common] open override val unknownUpdateTypeFlow: <UnknownUpdate>

Extensions

Name Summary
command [common]
Content
suspend fun BehaviourContext.command(commandRegex: Regex, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>):
suspend fun BehaviourContext.command(command: String, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>):


doInSubContext [common]
Content
suspend fun <T> BehaviourContext.doInSubContext(stopOnCompletion: Boolean = true, behaviourContextReceiver: BehaviourContextReceiver<T>): T


doInSubContextWithFlowsUpdatesFilterSetup [common]
Content
suspend fun <T> BehaviourContext.doInSubContextWithFlowsUpdatesFilterSetup(newFlowsUpdatesFilterSetUp: BehaviourContextAndTypeReceiver<Unit, FlowsUpdatesFilter>?, stopOnCompletion: Boolean = true, behaviourContextReceiver: BehaviourContextReceiver<T>): T
More info
Creates new one BehaviourContext, adding subsequent FlowsUpdatesFilter in case newFlowsUpdatesFilterSetUp is provided and as new BehaviourContext.scope.


doInSubContextWithUpdatesFilter [common]
Content
suspend fun <T> BehaviourContext.doInSubContextWithUpdatesFilter(updatesFilter: BehaviourContextAndTypeReceiver<Boolean, Update>?, stopOnCompletion: Boolean = true, behaviourContextReceiver: BehaviourContextReceiver<T>): T
More info
Creates new one BehaviourContext, adding subsequent FlowsUpdatesFilter in case updatesFilter is provided and as new BehaviourContext.scope


expectFlow [common]
Content
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>): <T>


expectOne [common]
Content
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


onAnimation [common]
Content
suspend fun BehaviourContext.onAnimation(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<AnimationContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<AnimationContent>>):


onAnyInlineQuery [common]
Content
suspend fun BehaviourContext.onAnyInlineQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (InlineQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineQuery>):


onAudio [common]
Content
suspend fun BehaviourContext.onAudio(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<AudioContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<AudioContent>>):


onAudioMediaGroup [common]
Content
suspend fun BehaviourContext.onAudioMediaGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<AudioMediaGroupContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<AudioMediaGroupContent>>):


onBaseInlineQuery [common]
Content
suspend fun BehaviourContext.onBaseInlineQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (BaseInlineQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, BaseInlineQuery>):


onChannelChatCreated [common]
Content
suspend fun BehaviourContext.onChannelChatCreated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<ChannelChatCreated>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ChannelChatCreated>>):


onChannelEvent [common]
Content
suspend fun BehaviourContext.onChannelEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<ChannelEvent>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ChannelEvent>>):


onChatEvent [common]
Content
suspend fun BehaviourContext.onChatEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<ChatEvent>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ChatEvent>>):


onChatMemberUpdated [common]
Content
suspend fun BehaviourContext.onChatMemberUpdated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatMemberUpdated) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatMemberUpdated>):


onCommand [common]
Content
inline suspend fun BehaviourContext.onCommand(commandRegex: Regex, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, noinline scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>):
inline suspend fun BehaviourContext.onCommand(command: String, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, noinline scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>):


onCommonChatMemberUpdated [common]
Content
suspend fun BehaviourContext.onCommonChatMemberUpdated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatMemberUpdated) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatMemberUpdated>):


onCommonEvent [common]
Content
suspend fun BehaviourContext.onCommonEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<CommonEvent>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<CommonEvent>>):


onContact [common]
Content
suspend fun BehaviourContext.onContact(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<ContactContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<ContactContent>>):


onContentMessage [common]
Content
suspend fun BehaviourContext.onContentMessage(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<MessageContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<MessageContent>>):


onDataCallbackQuery [common]
Content
suspend fun BehaviourContext.onDataCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (DataCallbackQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, DataCallbackQuery>):


onDeleteChatPhoto [common]
Content
suspend fun BehaviourContext.onDeleteChatPhoto(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<DeleteChatPhoto>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<DeleteChatPhoto>>):


onDice [common]
Content
suspend fun BehaviourContext.onDice(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<DiceContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<DiceContent>>):


onDocument [common]
Content
suspend fun BehaviourContext.onDocument(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<DocumentContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<DocumentContent>>):


onDocumentMediaGroupContent [common]
Content
suspend fun BehaviourContext.onDocumentMediaGroupContent(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = true, additionalFilter: CommonMessageFilter<DocumentMediaGroupContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<DocumentMediaGroupContent>>):


onDocumentsGroup [common]
Content
suspend fun BehaviourContext.onDocumentsGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<DocumentMediaGroupContent>>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<DocumentMediaGroupContent>>>):


oneOf [common]
Content
suspend fun <O> BehaviourContext.oneOf(deferredActions: Iterable<<O>>): O
suspend fun <O> BehaviourContext.oneOf(vararg deferredActions: <O>): O


oneOfActions [common]
Content
suspend fun <O> BehaviourContext.oneOfActions(deferredActions: Iterable<<, O>>): O
suspend fun <O> BehaviourContext.oneOfActions(vararg deferredActions: <
, O>): O


onGame [common]
Content
suspend fun BehaviourContext.onGame(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<GameContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<GameContent>>):


onGameShortNameCallbackQuery [common]
Content
suspend fun BehaviourContext.onGameShortNameCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (GameShortNameCallbackQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, GameShortNameCallbackQuery>):


onGroupChatCreated [common]
Content
suspend fun BehaviourContext.onGroupChatCreated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<GroupChatCreated>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<GroupChatCreated>>):


onGroupEvent [common]
Content
suspend fun BehaviourContext.onGroupEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<GroupEvent>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<GroupEvent>>):


onInlineMessageIdCallbackQuery [common]
Content
suspend fun BehaviourContext.onInlineMessageIdCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (InlineMessageIdCallbackQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineMessageIdCallbackQuery>):


onInlineMessageIdDataCallbackQuery [common]
Content
suspend fun BehaviourContext.onInlineMessageIdDataCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (InlineMessageIdDataCallbackQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineMessageIdDataCallbackQuery>):


onInlineMessageIdGameShortNameCallbackQuery [common]
Content
suspend fun BehaviourContext.onInlineMessageIdGameShortNameCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (InlineMessageIdGameShortNameCallbackQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineMessageIdGameShortNameCallbackQuery>):


onInvoice [common]
Content
suspend fun BehaviourContext.onInvoice(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<InvoiceContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<InvoiceContent>>):


onLeftChatMember [common]
Content
suspend fun BehaviourContext.onLeftChatMember(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<LeftChatMember>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<LeftChatMember>>):


onLocation [common]
Content
suspend fun BehaviourContext.onLocation(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<LocationContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<LocationContent>>):


onLocationInlineQuery [common]
Content
suspend fun BehaviourContext.onLocationInlineQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (LocationInlineQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, LocationInlineQuery>):


onMedia [common]
Content
suspend fun BehaviourContext.onMedia(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = true, additionalFilter: CommonMessageFilter<MediaContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<MediaContent>>):


onMediaCollection [common]
Content
suspend fun BehaviourContext.onMediaCollection(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: suspend (CommonMessage<MediaCollectionContent<TelegramMediaFile>>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<MediaCollectionContent<TelegramMediaFile>>>):


onMediaGroup [common]
Content
suspend fun BehaviourContext.onMediaGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<MediaGroupContent>>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<MediaGroupContent>>>):


onMessageAutoDeleteTimerChangedEvent [common]
Content
suspend fun BehaviourContext.onMessageAutoDeleteTimerChangedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<MessageAutoDeleteTimerChanged>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<MessageAutoDeleteTimerChanged>>):


onMessageCallbackQuery [common]
Content
suspend fun BehaviourContext.onMessageCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (MessageCallbackQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, MessageCallbackQuery>):


onMessageDataCallbackQuery [common]
Content
suspend fun BehaviourContext.onMessageDataCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (MessageDataCallbackQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, MessageDataCallbackQuery>):


onMessageGameShortNameCallbackQuery [common]
Content
suspend fun BehaviourContext.onMessageGameShortNameCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (MessageGameShortNameCallbackQuery) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, MessageGameShortNameCallbackQuery>):


onMyChatMemberUpdated [common]
Content
suspend fun BehaviourContext.onMyChatMemberUpdated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatMemberUpdated) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatMemberUpdated>):


onNewChatMembers [common]
Content
suspend fun BehaviourContext.onNewChatMembers(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<NewChatMembers>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<NewChatMembers>>):


onNewChatPhoto [common]
Content
suspend fun BehaviourContext.onNewChatPhoto(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<NewChatPhoto>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<NewChatPhoto>>):


onNewChatTitle [common]
Content
suspend fun BehaviourContext.onNewChatTitle(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<NewChatTitle>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<NewChatTitle>>):


onPassportMessage [common]
Content
suspend fun BehaviourContext.onPassportMessage(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (PassportMessage) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, PassportMessage>):


onPassportMessageWith [common]
Content
inline suspend fun <T : EncryptedPassportElement> BehaviourContext.onPassportMessageWith(includeFilterByChatInBehaviourSubContext: Boolean = true, noinline additionalFilter: suspend (PassportMessage) -> Boolean? = null, noinline scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, PassportMessage>):


onPhoto [common]
Content
suspend fun BehaviourContext.onPhoto(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<PhotoContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<PhotoContent>>):


onPhotoGallery [common]
Content
suspend fun BehaviourContext.onPhotoGallery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<PhotoContent>>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<PhotoContent>>>):


onPinnedMessage [common]
Content
suspend fun BehaviourContext.onPinnedMessage(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<PinnedMessage>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<PinnedMessage>>):


onPlaylist [common]
Content
suspend fun BehaviourContext.onPlaylist(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<AudioMediaGroupContent>>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<AudioMediaGroupContent>>>):


onPoll [common]
Content
suspend fun BehaviourContext.onPoll(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<PollContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<PollContent>>):


onProximityAlertTriggered [common]
Content
suspend fun BehaviourContext.onProximityAlertTriggered(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<ProximityAlertTriggered>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ProximityAlertTriggered>>):


onSticker [common]
Content
suspend fun BehaviourContext.onSticker(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<StickerContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<StickerContent>>):


onSupergroupChatCreated [common]
Content
suspend fun BehaviourContext.onSupergroupChatCreated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<SupergroupChatCreated>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<SupergroupChatCreated>>):


onSupergroupEvent [common]
Content
suspend fun BehaviourContext.onSupergroupEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<SupergroupEvent>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<SupergroupEvent>>):


onText [common]
Content
suspend fun BehaviourContext.onText(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<TextContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>):


onUnknownCallbackQueryType [common]
Content
suspend fun BehaviourContext.onUnknownCallbackQueryType(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (UnknownCallbackQueryType) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, UnknownCallbackQueryType>):


onVenue [common]
Content
suspend fun BehaviourContext.onVenue(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<VenueContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VenueContent>>):


onVideo [common]
Content
suspend fun BehaviourContext.onVideo(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<VideoContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VideoContent>>):


onVideoGallery [common]
Content
suspend fun BehaviourContext.onVideoGallery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<VideoContent>>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<VideoContent>>>):


onVideoNote [common]
Content
suspend fun BehaviourContext.onVideoNote(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<VideoNoteContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VideoNoteContent>>):


onVisualGallery [common]
Content
suspend fun BehaviourContext.onVisualGallery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<VisualMediaGroupContent>>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<VisualMediaGroupContent>>>):


onVisualMediaGroup [common]
Content
suspend fun BehaviourContext.onVisualMediaGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<VisualMediaGroupContent>>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<VisualMediaGroupContent>>>):


onVoice [common]
Content
suspend fun BehaviourContext.onVoice(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<VoiceContent>? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VoiceContent>>):


onVoiceChatEndedEvent [common]
Content
suspend fun BehaviourContext.onVoiceChatEndedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<VoiceChatEnded>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatEnded>>):


onVoiceChatEvent [common]
Content
suspend fun BehaviourContext.onVoiceChatEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<VoiceChatEvent>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatEvent>>):


onVoiceChatParticipantsInvitedEvent [common]
Content
suspend fun BehaviourContext.onVoiceChatParticipantsInvitedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<VoiceChatParticipantsInvited>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatParticipantsInvited>>):


onVoiceChatStartedEvent [common]
Content
suspend fun BehaviourContext.onVoiceChatStartedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<VoiceChatStarted>) -> Boolean? = null, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatStarted>>):


parallel [common]
Content
suspend fun <T> BehaviourContext.parallel(action: BehaviourContextReceiver<T>): <T>


stop [common]
Content
fun BehaviourContext.stop()
More info
This method will cancel ALL subsequent contexts, expectations and waiters


waitAnimation [common]
Content
suspend fun BehaviourContext.waitAnimation(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<AnimationContent>? = null): List<AnimationContent>


waitAnyInlineQuery [common]
Content
suspend fun BehaviourContext.waitAnyInlineQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: InlineQueryMapper<InlineQuery>? = null): List<InlineQuery>


waitAnyMediaGroupContent [common]
Content
suspend fun BehaviourContext.waitAnyMediaGroupContent(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: CommonMessageToContentMapper<MediaGroupContent>? = null): List<MediaGroupContent>


waitAnyPassportMessages [common]
Content
suspend fun BehaviourContext.waitAnyPassportMessages(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: PassportMessageMapper? = null): List<PassportData>


waitAudio [common]
Content
suspend fun BehaviourContext.waitAudio(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: CommonMessageToContentMapper<AudioContent>? = null): List<AudioContent>


waitAudioMediaGroupContent [common]
Content
suspend fun BehaviourContext.waitAudioMediaGroupContent(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: CommonMessageToContentMapper<AudioMediaGroupContent>? = null): List<AudioMediaGroupContent>


waitBaseInlineQuery [common]
Content
suspend fun BehaviourContext.waitBaseInlineQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: InlineQueryMapper<BaseInlineQuery>? = null): List<BaseInlineQuery>


waitChannelChatCreatedEvents [common]
Content
suspend fun BehaviourContext.waitChannelChatCreatedEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<ChannelChatCreated>? = null): List<ChannelChatCreated>


waitChannelEvents [common]
Content
suspend fun BehaviourContext.waitChannelEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<ChannelEvent>? = null): List<ChannelEvent>


waitChatEvents [common]
Content
suspend fun BehaviourContext.waitChatEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<ChatEvent>? = null): List<ChatEvent>


waitChatMemberUpdated [common]
Content
suspend fun BehaviourContext.waitChatMemberUpdated(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: ChatMemberUpdatedMapper<ChatMemberUpdated>? = null): List<ChatMemberUpdated>


waitCommonChatMemberUpdated [common]
Content
suspend fun BehaviourContext.waitCommonChatMemberUpdated(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: ChatMemberUpdatedMapper<ChatMemberUpdated>? = null): List<ChatMemberUpdated>


waitCommonEvents [common]
Content
suspend fun BehaviourContext.waitCommonEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<CommonEvent>? = null): List<CommonEvent>


waitContact [common]
Content
suspend fun BehaviourContext.waitContact(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<ContactContent>? = null): List<ContactContent>


waitContentMessage [common]
Content
suspend fun BehaviourContext.waitContentMessage(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<MessageContent>? = null): List<MessageContent>


waitDataCallbackQuery [common]
Content
suspend fun BehaviourContext.waitDataCallbackQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CallbackQueryMapper<DataCallbackQuery>? = null): List<DataCallbackQuery>


waitDeleteChatPhotoEvents [common]
Content
suspend fun BehaviourContext.waitDeleteChatPhotoEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<DeleteChatPhoto>? = null): List<DeleteChatPhoto>


waitDice [common]
Content
suspend fun BehaviourContext.waitDice(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<DiceContent>? = null): List<DiceContent>


waitDocument [common]
Content
suspend fun BehaviourContext.waitDocument(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: CommonMessageToContentMapper<DocumentContent>? = null): List<DocumentContent>


waitDocumentMediaGroupContent [common]
Content
suspend fun BehaviourContext.waitDocumentMediaGroupContent(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: CommonMessageToContentMapper<DocumentMediaGroupContent>? = null): List<DocumentMediaGroupContent>


waitDocumentsGroup [common]
Content
suspend fun BehaviourContext.waitDocumentsGroup(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: suspend (List<MediaGroupMessage<DocumentMediaGroupContent>>) -> Boolean? = null): List<List<DocumentMediaGroupContent>>


waitGame [common]
Content
suspend fun BehaviourContext.waitGame(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<GameContent>? = null): List<GameContent>


waitGameShortNameCallbackQuery [common]
Content
suspend fun BehaviourContext.waitGameShortNameCallbackQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CallbackQueryMapper<GameShortNameCallbackQuery>? = null): List<GameShortNameCallbackQuery>


waitGroupChatCreatedEvents [common]
Content
suspend fun BehaviourContext.waitGroupChatCreatedEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<GroupChatCreated>? = null): List<GroupChatCreated>


waitGroupEvents [common]
Content
suspend fun BehaviourContext.waitGroupEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<GroupEvent>? = null): List<GroupEvent>


waitInlineMessageIdCallbackQuery [common]
Content
suspend fun BehaviourContext.waitInlineMessageIdCallbackQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CallbackQueryMapper<InlineMessageIdCallbackQuery>? = null): List<InlineMessageIdCallbackQuery>


waitInlineMessageIdDataCallbackQuery [common]
Content
suspend fun BehaviourContext.waitInlineMessageIdDataCallbackQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CallbackQueryMapper<InlineMessageIdDataCallbackQuery>? = null): List<InlineMessageIdDataCallbackQuery>


waitInlineMessageIdGameShortNameCallbackQuery [common]
Content
suspend fun BehaviourContext.waitInlineMessageIdGameShortNameCallbackQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CallbackQueryMapper<InlineMessageIdGameShortNameCallbackQuery>? = null): List<InlineMessageIdGameShortNameCallbackQuery>


waitInvoice [common]
Content
suspend fun BehaviourContext.waitInvoice(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<InvoiceContent>? = null): List<InvoiceContent>


waitLeftChatMemberEvents [common]
Content
suspend fun BehaviourContext.waitLeftChatMemberEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<LeftChatMember>? = null): List<LeftChatMember>


waitLocation [common]
Content
suspend fun BehaviourContext.waitLocation(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<LocationContent>? = null): List<LocationContent>


waitLocationInlineQuery [common]
Content
suspend fun BehaviourContext.waitLocationInlineQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: InlineQueryMapper<LocationInlineQuery>? = null): List<LocationInlineQuery>


waitMedia [common]
Content
suspend fun BehaviourContext.waitMedia(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: CommonMessageToContentMapper<MediaContent>? = null): List<MediaContent>


waitMediaGroup [common]
Content
suspend fun BehaviourContext.waitMediaGroup(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: suspend (List<MediaGroupMessage<MediaGroupContent>>) -> Boolean? = null): List<List<MediaGroupContent>>


waitMessageAutoDeleteTimerChangedEvents [common]
Content
suspend fun BehaviourContext.waitMessageAutoDeleteTimerChangedEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<MessageAutoDeleteTimerChanged>? = null): List<MessageAutoDeleteTimerChanged>


waitMessageCallbackQuery [common]
Content
suspend fun BehaviourContext.waitMessageCallbackQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CallbackQueryMapper<MessageCallbackQuery>? = null): List<MessageCallbackQuery>


waitMessageDataCallbackQuery [common]
Content
suspend fun BehaviourContext.waitMessageDataCallbackQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CallbackQueryMapper<MessageDataCallbackQuery>? = null): List<MessageDataCallbackQuery>


waitMessageGameShortNameCallbackQuery [common]
Content
suspend fun BehaviourContext.waitMessageGameShortNameCallbackQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CallbackQueryMapper<MessageGameShortNameCallbackQuery>? = null): List<MessageGameShortNameCallbackQuery>


waitMyChatMemberUpdated [common]
Content
suspend fun BehaviourContext.waitMyChatMemberUpdated(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: ChatMemberUpdatedMapper<ChatMemberUpdated>? = null): List<ChatMemberUpdated>


waitNewChatMembersEvents [common]
Content
suspend fun BehaviourContext.waitNewChatMembersEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<NewChatMembers>? = null): List<NewChatMembers>


waitNewChatPhotoEvents [common]
Content
suspend fun BehaviourContext.waitNewChatPhotoEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<NewChatPhoto>? = null): List<NewChatPhoto>


waitNewChatTitleEvents [common]
Content
suspend fun BehaviourContext.waitNewChatTitleEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<NewChatTitle>? = null): List<NewChatTitle>


waitPassportMessages [common]
Content
suspend fun <O> BehaviourContext.waitPassportMessages(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, mapper: suspend PassportMessage.() -> O?): List<O>


waitPassportMessagesWith [common]
Content
inline suspend fun <T : EncryptedPassportElement> BehaviourContext.waitPassportMessagesWith(count: Int = 1, initRequest: Request<>? = null, noinline errorFactory: NullableRequestBuilder<> = { null }, noinline filter: PassportMessageMapper? = null): List<PassportData>


waitPhoto [common]
Content
suspend fun BehaviourContext.waitPhoto(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: CommonMessageToContentMapper<PhotoContent>? = null): List<PhotoContent>


waitPhotoGallery [common]
Content
suspend fun BehaviourContext.waitPhotoGallery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: suspend (List<MediaGroupMessage<PhotoContent>>) -> Boolean? = null): List<List<PhotoContent>>


waitPinnedMessageEvents [common]
Content
suspend fun BehaviourContext.waitPinnedMessageEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<PinnedMessage>? = null): List<PinnedMessage>


waitPlaylist [common]
Content
suspend fun BehaviourContext.waitPlaylist(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: suspend (List<MediaGroupMessage<AudioMediaGroupContent>>) -> Boolean? = null): List<List<AudioMediaGroupContent>>


waitPoll [common]
Content
suspend fun BehaviourContext.waitPoll(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<PollContent>? = null): List<PollContent>


waitProximityAlertTriggeredEvents [common]
Content
suspend fun BehaviourContext.waitProximityAlertTriggeredEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<ProximityAlertTriggered>? = null): List<ProximityAlertTriggered>


waitSticker [common]
Content
suspend fun BehaviourContext.waitSticker(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<StickerContent>? = null): List<StickerContent>


waitSupergroupChatCreatedEvents [common]
Content
suspend fun BehaviourContext.waitSupergroupChatCreatedEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<SupergroupChatCreated>? = null): List<SupergroupChatCreated>


waitSupergroupEvents [common]
Content
suspend fun BehaviourContext.waitSupergroupEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<SupergroupEvent>? = null): List<SupergroupEvent>


waitText [common]
Content
suspend fun BehaviourContext.waitText(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<TextContent>? = null): List<TextContent>


waitUnknownCallbackQuery [common]
Content
suspend fun BehaviourContext.waitUnknownCallbackQuery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CallbackQueryMapper<UnknownCallbackQueryType>? = null): List<UnknownCallbackQueryType>


waitVenue [common]
Content
suspend fun BehaviourContext.waitVenue(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<VenueContent>? = null): List<VenueContent>


waitVideo [common]
Content
suspend fun BehaviourContext.waitVideo(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: CommonMessageToContentMapper<VideoContent>? = null): List<VideoContent>


waitVideoGallery [common]
Content
suspend fun BehaviourContext.waitVideoGallery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: suspend (List<MediaGroupMessage<VideoContent>>) -> Boolean? = null): List<List<VideoContent>>


waitVideoNote [common]
Content
suspend fun BehaviourContext.waitVideoNote(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<VideoNoteContent>? = null): List<VideoNoteContent>


waitVisualGallery [common]
Content
suspend fun BehaviourContext.waitVisualGallery(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: suspend (List<MediaGroupMessage<VisualMediaGroupContent>>) -> Boolean? = null): List<List<VisualMediaGroupContent>>


waitVisualMediaGroupContent [common]
Content
suspend fun BehaviourContext.waitVisualMediaGroupContent(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: CommonMessageToContentMapper<VisualMediaGroupContent>? = null): List<VisualMediaGroupContent>


waitVoice [common]
Content
suspend fun BehaviourContext.waitVoice(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: CommonMessageToContentMapper<VoiceContent>? = null): List<VoiceContent>


waitVoiceChatEndedEvents [common]
Content
suspend fun BehaviourContext.waitVoiceChatEndedEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<VoiceChatEnded>? = null): List<VoiceChatEnded>


waitVoiceChatEvents [common]
Content
suspend fun BehaviourContext.waitVoiceChatEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<VoiceChatEvent>? = null): List<VoiceChatEvent>


waitVoiceChatParticipantsInvitedEvents [common]
Content
suspend fun BehaviourContext.waitVoiceChatParticipantsInvitedEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<VoiceChatParticipantsInvited>? = null): List<VoiceChatParticipantsInvited>


waitVoiceChatStartedEvents [common]
Content
suspend fun BehaviourContext.waitVoiceChatStartedEvents(initRequest: Request<>? = null, errorFactory: NullableRequestBuilder<> = { null }, count: Int = 1, filter: EventMessageToEventMapper<VoiceChatStarted>? = null): List<VoiceChatStarted>