docs

# BehaviourContext

interface BehaviourContext : FlowsUpdatesFilter, RequestsExecutor, CoroutineScope
Content copied to clipboard

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

## See also

dev.inmo.tgbotapi.extensions.behaviour_builder.DefaultBehaviourContext

## Functions

close
Link copied to clipboard
expect abstract fun close ()
Content copied to clipboard
copy
Link copied to clipboard
abstract fun copy ( bot: TelegramBot = this.bot, scope: CoroutineScope = this.scope, broadcastChannelsSize: Int = 100, onBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND, upstreamUpdatesFlow: Flow< Update >? = null, triggersHolder: TriggersHolder = TriggersHolder(), updatesFilter: BehaviourContextAndTypeReceiver < Boolean , Update >? = null): BehaviourContext
Content copied to clipboard
execute
Link copied to clipboard
abstract suspend fun < T : Any > execute (request: Request < T >): T
Content copied to clipboard

Unsafe execution of incoming request. Can throw almost any exception. So, it is better to use something like dev.inmo.tgbotapi.extensions.utils.shortcuts.executeAsync or dev.inmo.tgbotapi.extensions.utils.shortcuts.executeUnsafe

## Properties

allowedUpdates
Link copied to clipboard
open override val allowedUpdates : List < String >
Content copied to clipboard
allUpdatesFlow
Link copied to clipboard
abstract val allUpdatesFlow : Flow< Update >
Content copied to clipboard
allUpdatesWithoutMediaGroupsGroupingFlow
Link copied to clipboard
abstract val allUpdatesWithoutMediaGroupsGroupingFlow : Flow< Update >
Content copied to clipboard
asUpdateReceiver
Link copied to clipboard
abstract val asUpdateReceiver : UpdateReceiver < Update >
Content copied to clipboard
bot
Link copied to clipboard
open val bot : TelegramBot
Content copied to clipboard
callbackQueriesFlow
Link copied to clipboard
abstract val callbackQueriesFlow : Flow< CallbackQueryUpdate >
Content copied to clipboard
channelPostMediaGroupsFlow
Link copied to clipboard
abstract val channelPostMediaGroupsFlow : Flow< ChannelPostMediaGroupUpdate >
Content copied to clipboard
channelPostsFlow
Link copied to clipboard
abstract val channelPostsFlow : Flow< ChannelPostUpdate >
Content copied to clipboard
chatJoinRequestUpdateFlow
Link copied to clipboard
abstract val chatJoinRequestUpdateFlow : Flow< ChatJoinRequestUpdate >
Content copied to clipboard
chatMemberUpdatesFlow
Link copied to clipboard
abstract val chatMemberUpdatesFlow : Flow< CommonChatMemberUpdatedUpdate >
Content copied to clipboard
chosenInlineResultsFlow
Link copied to clipboard
abstract val chosenInlineResultsFlow : Flow< ChosenInlineResultUpdate >
Content copied to clipboard
coroutineContext
Link copied to clipboard
abstract val coroutineContext : CoroutineContext
Content copied to clipboard
editedChannelPostMediaGroupsFlow
Link copied to clipboard
abstract val editedChannelPostMediaGroupsFlow : Flow< EditChannelPostMediaGroupUpdate >
Content copied to clipboard
editedChannelPostsFlow
Link copied to clipboard
abstract val editedChannelPostsFlow : Flow< EditChannelPostUpdate >
Content copied to clipboard
editedMessageMediaGroupsFlow
Link copied to clipboard
abstract val editedMessageMediaGroupsFlow : Flow< EditMessageMediaGroupUpdate >
Content copied to clipboard
editedMessagesFlow
Link copied to clipboard
abstract val editedMessagesFlow : Flow< EditMessageUpdate >
Content copied to clipboard
flowsUpdatesFilter
Link copied to clipboard
open val flowsUpdatesFilter : FlowsUpdatesFilter
Content copied to clipboard

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

inlineQueriesFlow
Link copied to clipboard
abstract val inlineQueriesFlow : Flow< InlineQueryUpdate >
Content copied to clipboard
messageMediaGroupsFlow
Link copied to clipboard
abstract val messageMediaGroupsFlow : Flow< MessageMediaGroupUpdate >
Content copied to clipboard
messagesFlow
Link copied to clipboard
abstract val messagesFlow : Flow< MessageUpdate >
Content copied to clipboard
myChatMemberUpdatesFlow
Link copied to clipboard
abstract val myChatMemberUpdatesFlow : Flow< MyChatMemberUpdatedUpdate >
Content copied to clipboard
pollAnswersFlow
Link copied to clipboard
abstract val pollAnswersFlow : Flow< PollAnswerUpdate >
Content copied to clipboard
pollsFlow
Link copied to clipboard
abstract val pollsFlow : Flow< PollUpdate >
Content copied to clipboard
preCheckoutQueriesFlow
Link copied to clipboard
abstract val preCheckoutQueriesFlow : Flow< PreCheckoutQueryUpdate >
Content copied to clipboard
scope
Link copied to clipboard
open val scope : CoroutineScope
Content copied to clipboard

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

shippingQueriesFlow
Link copied to clipboard
abstract val shippingQueriesFlow : Flow< ShippingQueryUpdate >
Content copied to clipboard
triggersHolder
Link copied to clipboard
abstract val triggersHolder : TriggersHolder
Content copied to clipboard
unknownUpdatesFlow
Link copied to clipboard
abstract val unknownUpdatesFlow : Flow< UnknownUpdate >
Content copied to clipboard

## Inheritors

BehaviourContextWithFSM
Link copied to clipboard
DefaultBehaviourContextWithFSM
Link copied to clipboard
DefaultBehaviourContext
Link copied to clipboard

## Extensions

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
followLocation
Link copied to clipboard
suspend fun BehaviourContext . followLocation (message: ContentMessage < LiveLocationContent >, onLocation: BehaviourContextAndTypeReceiver < Unit , Location >)
Content copied to clipboard

Use this extension when you want to follow LiveLocation until it will became StaticLocation. This method is synchronous. You may use something like kotlinx.coroutines.launch or kotlinx.coroutines.async to run it asynchronously

oneOf
Link copied to clipboard
suspend fun < O > BehaviourContext . oneOf (deferredActions: Iterable <Deferred< O >>): O
Content copied to clipboard
suspend fun < O > BehaviourContext . oneOf (vararg deferredActions: Deferred< O >): O
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
parallel
Link copied to clipboard
suspend fun < T > BehaviourContext . parallel (action: BehaviourContextReceiver < T >): Deferred< T >
Content copied to clipboard
stop
Link copied to clipboard
fun BehaviourContext . stop ()
Content copied to clipboard

This method will cancel ALL subsequent contexts, expectations and waiters

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
waitAnimationMessage
Link copied to clipboard
suspend fun BehaviourContext . waitAnimationMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < AnimationContent >>? = null, mapper: CommonMessageToCommonMessageMapper < AnimationContent >? = null): List < CommonMessage < 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
waitAnyMediaGroupContentMessage
Link copied to clipboard
suspend fun BehaviourContext . waitAnyMediaGroupContentMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter < CommonMessage < MediaGroupContent >>? = null, mapper: CommonMessageToCommonMessageMapper < MediaGroupContent >? = null): List < CommonMessage < 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
waitAudioMediaGroupContentMessage
Link copied to clipboard
suspend fun BehaviourContext . waitAudioMediaGroupContentMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter < CommonMessage < AudioMediaGroupContent >>? = null, mapper: CommonMessageToCommonMessageMapper < AudioMediaGroupContent >? = null): List < CommonMessage < AudioMediaGroupContent >>
Content copied to clipboard
waitAudioMessage
Link copied to clipboard
suspend fun BehaviourContext . waitAudioMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter < CommonMessage < AudioContent >>? = null, mapper: CommonMessageToCommonMessageMapper < AudioContent >? = null): List < CommonMessage < AudioContent >>
Content copied to clipboard
waitBaseChosenInlineResult
Link copied to clipboard
suspend fun BehaviourContext . waitBaseChosenInlineResult ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < BaseChosenInlineResult >? = null, mapper: PollMapper < BaseChosenInlineResult >? = null): List < BaseChosenInlineResult >
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
waitChatJoinRequests
Link copied to clipboard
suspend fun BehaviourContext . waitChatJoinRequests ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChatJoinRequest >? = null, mapper: ChatJoinRequestsMapper ? = null): List < ChatJoinRequest >
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
waitChosenInlineResult
Link copied to clipboard
suspend fun BehaviourContext . waitChosenInlineResult ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChosenInlineResult >? = null, mapper: ChosenInlineResultMapper < ChosenInlineResult >? = null): List < ChosenInlineResult >
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
waitContactMessage
Link copied to clipboard
suspend fun BehaviourContext . waitContactMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < ContactContent >>? = null, mapper: CommonMessageToCommonMessageMapper < ContactContent >? = null): List < CommonMessage < ContactContent >>
Content copied to clipboard
waitContent
Link copied to clipboard
suspend fun BehaviourContext . waitContent ( 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
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: CommonMessageToCommonMessageMapper < MessageContent >? = null): List < CommonMessage < 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
waitDiceMessage
Link copied to clipboard
suspend fun BehaviourContext . waitDiceMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < DiceContent >>? = null, mapper: CommonMessageToCommonMessageMapper < DiceContent >? = null): List < CommonMessage < 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
waitDocumentMediaGroupContentMessage
Link copied to clipboard
suspend fun BehaviourContext . waitDocumentMediaGroupContentMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter < CommonMessage < DocumentMediaGroupContent >>? = null, mapper: CommonMessageToCommonMessageMapper < DocumentMediaGroupContent >? = null): List < CommonMessage < DocumentMediaGroupContent >>
Content copied to clipboard
waitDocumentMessage
Link copied to clipboard
suspend fun BehaviourContext . waitDocumentMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter < CommonMessage < DocumentContent >>? = null, mapper: CommonMessageToCommonMessageMapper < DocumentContent >? = null): List < CommonMessage < DocumentContent >>
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
waitEditedAnimation
Link copied to clipboard
suspend fun BehaviourContext . waitEditedAnimation ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < AnimationContent >>? = null, mapper: CommonMessageToContentMapper < AnimationContent >? = null): List < AnimationContent >
Content copied to clipboard
waitEditedAnyMediaGroupContent
Link copied to clipboard
suspend fun BehaviourContext . waitEditedAnyMediaGroupContent ( 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
waitEditedAudio
Link copied to clipboard
suspend fun BehaviourContext . waitEditedAudio ( 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
waitEditedAudioMediaGroupContent
Link copied to clipboard
suspend fun BehaviourContext . waitEditedAudioMediaGroupContent ( 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
waitEditedContact
Link copied to clipboard
suspend fun BehaviourContext . waitEditedContact ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < ContactContent >>? = null, mapper: CommonMessageToContentMapper < ContactContent >? = null): List < ContactContent >
Content copied to clipboard
waitEditedContentMessage
Link copied to clipboard
suspend fun BehaviourContext . waitEditedContentMessage ( 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
waitEditedDice
Link copied to clipboard
suspend fun BehaviourContext . waitEditedDice ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < DiceContent >>? = null, mapper: CommonMessageToContentMapper < DiceContent >? = null): List < DiceContent >
Content copied to clipboard
waitEditedDocument
Link copied to clipboard
suspend fun BehaviourContext . waitEditedDocument ( 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
waitEditedDocumentMediaGroupContent
Link copied to clipboard
suspend fun BehaviourContext . waitEditedDocumentMediaGroupContent ( 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
waitEditedGame
Link copied to clipboard
suspend fun BehaviourContext . waitEditedGame ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < GameContent >>? = null, mapper: CommonMessageToContentMapper < GameContent >? = null): List < GameContent >
Content copied to clipboard
waitEditedInvoice
Link copied to clipboard
suspend fun BehaviourContext . waitEditedInvoice ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < InvoiceContent >>? = null, mapper: CommonMessageToContentMapper < InvoiceContent >? = null): List < InvoiceContent >
Content copied to clipboard
waitEditedLiveLocation
Link copied to clipboard
suspend fun BehaviourContext . waitEditedLiveLocation ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < LiveLocationContent >>? = null, mapper: CommonMessageToContentMapper < LiveLocationContent >? = null): List < LiveLocationContent >
Content copied to clipboard
waitEditedLocation
Link copied to clipboard
suspend fun BehaviourContext . waitEditedLocation ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < LocationContent >>? = null, mapper: CommonMessageToContentMapper < LocationContent >? = null): List < LocationContent >
Content copied to clipboard
waitEditedMedia
Link copied to clipboard
suspend fun BehaviourContext . waitEditedMedia ( 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
waitEditedPhoto
Link copied to clipboard
suspend fun BehaviourContext . waitEditedPhoto ( 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
waitEditedStaticLocation
Link copied to clipboard
suspend fun BehaviourContext . waitEditedStaticLocation ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < StaticLocationContent >>? = null, mapper: CommonMessageToContentMapper < StaticLocationContent >? = null): List < StaticLocationContent >
Content copied to clipboard
waitEditedSticker
Link copied to clipboard
suspend fun BehaviourContext . waitEditedSticker ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < StickerContent >>? = null, mapper: CommonMessageToContentMapper < StickerContent >? = null): List < StickerContent >
Content copied to clipboard
waitEditedText
Link copied to clipboard
suspend fun BehaviourContext . waitEditedText ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < TextContent >>? = null, mapper: CommonMessageToContentMapper < TextContent >? = null): List < TextContent >
Content copied to clipboard
waitEditedTextedMediaContent
Link copied to clipboard
suspend fun BehaviourContext . waitEditedTextedMediaContent ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter < CommonMessage < TextedMediaContent >>? = null, mapper: CommonMessageToContentMapper < TextedMediaContent >? = null): List < TextedMediaContent >
Content copied to clipboard
waitEditedVenue
Link copied to clipboard
suspend fun BehaviourContext . waitEditedVenue ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < VenueContent >>? = null, mapper: CommonMessageToContentMapper < VenueContent >? = null): List < VenueContent >
Content copied to clipboard
waitEditedVideo
Link copied to clipboard
suspend fun BehaviourContext . waitEditedVideo ( 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
waitEditedVideoNote
Link copied to clipboard
suspend fun BehaviourContext . waitEditedVideoNote ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < VideoNoteContent >>? = null, mapper: CommonMessageToContentMapper < VideoNoteContent >? = null): List < VideoNoteContent >
Content copied to clipboard
waitEditedVisualMediaGroupContent
Link copied to clipboard
suspend fun BehaviourContext . waitEditedVisualMediaGroupContent ( 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
waitEditedVoice
Link copied to clipboard
suspend fun BehaviourContext . waitEditedVoice ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < VoiceContent >>? = null, mapper: CommonMessageToContentMapper < VoiceContent >? = null): List < VoiceContent >
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
waitGameMessage
Link copied to clipboard
suspend fun BehaviourContext . waitGameMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < GameContent >>? = null, mapper: CommonMessageToCommonMessageMapper < GameContent >? = null): List < CommonMessage < 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
waitInvoiceMessage
Link copied to clipboard
suspend fun BehaviourContext . waitInvoiceMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < InvoiceContent >>? = null, mapper: CommonMessageToCommonMessageMapper < InvoiceContent >? = null): List < CommonMessage < 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
waitLiveLocation
Link copied to clipboard
suspend fun BehaviourContext . waitLiveLocation ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < LiveLocationContent >>? = null, mapper: CommonMessageToContentMapper < LiveLocationContent >? = null): List < LiveLocationContent >
Content copied to clipboard
waitLiveLocationMessage
Link copied to clipboard
suspend fun BehaviourContext . waitLiveLocationMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < LiveLocationContent >>? = null, mapper: CommonMessageToCommonMessageMapper < LiveLocationContent >? = null): List < CommonMessage < LiveLocationContent >>
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
waitLocationChosenInlineResult
Link copied to clipboard
suspend fun BehaviourContext . waitLocationChosenInlineResult ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < LocationChosenInlineResult >? = null, mapper: PollMapper < LocationChosenInlineResult >? = null): List < LocationChosenInlineResult >
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
waitLocationMessage
Link copied to clipboard
suspend fun BehaviourContext . waitLocationMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < LocationContent >>? = null, mapper: CommonMessageToCommonMessageMapper < LocationContent >? = null): List < CommonMessage < LocationContent >>
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
waitMediaMessage
Link copied to clipboard
suspend fun BehaviourContext . waitMediaMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter < CommonMessage < MediaContent >>? = null, mapper: CommonMessageToCommonMessageMapper < MediaContent >? = null): List < CommonMessage < MediaContent >>
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 }, 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
waitPhotoMessage
Link copied to clipboard
suspend fun BehaviourContext . waitPhotoMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter < CommonMessage < PhotoContent >>? = null, mapper: CommonMessageToCommonMessageMapper < PhotoContent >? = null): List < CommonMessage < 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
waitPollAnswers
Link copied to clipboard
suspend fun BehaviourContext . waitPollAnswers ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < PollAnswer >? = null, mapper: PollAnswerMapper ? = null): List < PollAnswer >
Content copied to clipboard

This wait will be triggered only for stopped polls and polls, which are sent by the bot

waitPollMessage
Link copied to clipboard
suspend fun BehaviourContext . waitPollMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < PollContent >>? = null, mapper: CommonMessageToCommonMessageMapper < PollContent >? = null): List < CommonMessage < PollContent >>
Content copied to clipboard
waitPollUpdates
Link copied to clipboard
suspend fun BehaviourContext . waitPollUpdates ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < Poll >? = null, mapper: PollMapper < Poll >? = null): List < Poll >
Content copied to clipboard

This wait will be triggered only for stopped polls and polls, which are sent by the bot

waitPreCheckoutQueries
Link copied to clipboard
suspend fun BehaviourContext . waitPreCheckoutQueries ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < PreCheckoutQuery >? = null, mapper: PreCheckoutQueryMapper ? = null): List < PreCheckoutQuery >
Content copied to clipboard
waitPrivateEvents
Link copied to clipboard
suspend fun BehaviourContext . waitPrivateEvents ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChatEventMessage < PrivateEvent >>? = null, mapper: EventMessageToEventMapper < PrivateEvent >? = null): List < PrivateEvent >
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
waitPublicChatEvents
Link copied to clipboard
suspend fun BehaviourContext . waitPublicChatEvents ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChatEventMessage < PublicChatEvent >>? = null, mapper: EventMessageToEventMapper < PublicChatEvent >? = null): List < PublicChatEvent >
Content copied to clipboard
waitQuizPollUpdates
Link copied to clipboard
suspend fun BehaviourContext . waitQuizPollUpdates ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < QuizPoll >? = null, mapper: PollMapper < QuizPoll >? = null): List < QuizPoll >
Content copied to clipboard

This wait will be triggered only for stopped polls and polls, which are sent by the bot

waitRegularPollUpdates
Link copied to clipboard
suspend fun BehaviourContext . waitRegularPollUpdates ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < RegularPoll >? = null, mapper: PollMapper < RegularPoll >? = null): List < RegularPoll >
Content copied to clipboard

This wait will be triggered only for stopped polls and polls, which are sent by the bot

waitShippingQueries
Link copied to clipboard
suspend fun BehaviourContext . waitShippingQueries ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ShippingQuery >? = null, mapper: ShippingQueryMapper ? = null): List < ShippingQuery >
Content copied to clipboard
waitStaticLocation
Link copied to clipboard
suspend fun BehaviourContext . waitStaticLocation ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < StaticLocationContent >>? = null, mapper: CommonMessageToContentMapper < StaticLocationContent >? = null): List < StaticLocationContent >
Content copied to clipboard
waitStaticLocationMessage
Link copied to clipboard
suspend fun BehaviourContext . waitStaticLocationMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < StaticLocationContent >>? = null, mapper: CommonMessageToCommonMessageMapper < StaticLocationContent >? = null): List < CommonMessage < StaticLocationContent >>
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
waitStickerMessage
Link copied to clipboard
suspend fun BehaviourContext . waitStickerMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < StickerContent >>? = null, mapper: CommonMessageToCommonMessageMapper < StickerContent >? = null): List < CommonMessage < StickerContent >>
Content copied to clipboard
waitSuccessfulPaymentEvents
Link copied to clipboard
suspend fun BehaviourContext . waitSuccessfulPaymentEvents ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChatEventMessage < SuccessfulPaymentEvent >>? = null, mapper: EventMessageToEventMapper < SuccessfulPaymentEvent >? = null): List < SuccessfulPaymentEvent >
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
waitTextedMediaContent
Link copied to clipboard
suspend fun BehaviourContext . waitTextedMediaContent ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter < CommonMessage < TextedMediaContent >>? = null, mapper: CommonMessageToContentMapper < TextedMediaContent >? = null): List < TextedMediaContent >
Content copied to clipboard
waitTextedMediaContentMessage
Link copied to clipboard
suspend fun BehaviourContext . waitTextedMediaContentMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter < CommonMessage < TextedMediaContent >>? = null, mapper: CommonMessageToCommonMessageMapper < TextedMediaContent >? = null): List < CommonMessage < TextedMediaContent >>
Content copied to clipboard
waitTextMessage
Link copied to clipboard
suspend fun BehaviourContext . waitTextMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < TextContent >>? = null, mapper: CommonMessageToCommonMessageMapper < TextContent >? = null): List < CommonMessage < 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
waitUserLoggedInEvents
Link copied to clipboard
suspend fun BehaviourContext . waitUserLoggedInEvents ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChatEventMessage < UserLoggedIn >>? = null, mapper: EventMessageToEventMapper < UserLoggedIn >? = null): List < UserLoggedIn >
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
waitVenueMessage
Link copied to clipboard
suspend fun BehaviourContext . waitVenueMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < VenueContent >>? = null, mapper: CommonMessageToCommonMessageMapper < VenueContent >? = null): List < CommonMessage < 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
waitVideoChatEndedEvents
Link copied to clipboard
suspend fun BehaviourContext . waitVideoChatEndedEvents ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChatEventMessage < VideoChatEnded >>? = null, mapper: EventMessageToEventMapper < VideoChatEnded >? = null): List < VideoChatEnded >
Content copied to clipboard
waitVideoChatEvents
Link copied to clipboard
suspend fun BehaviourContext . waitVideoChatEvents ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChatEventMessage < VideoChatEvent >>? = null, mapper: EventMessageToEventMapper < VideoChatEvent >? = null): List < VideoChatEvent >
Content copied to clipboard
waitVideoChatParticipantsInvitedEvents
Link copied to clipboard
suspend fun BehaviourContext . waitVideoChatParticipantsInvitedEvents ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChatEventMessage < VideoChatParticipantsInvited >>? = null, mapper: EventMessageToEventMapper < VideoChatParticipantsInvited >? = null): List < VideoChatParticipantsInvited >
Content copied to clipboard
waitVideoChatStartedEvents
Link copied to clipboard
suspend fun BehaviourContext . waitVideoChatStartedEvents ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < ChatEventMessage < VideoChatStarted >>? = null, mapper: EventMessageToEventMapper < VideoChatStarted >? = null): List < VideoChatStarted >
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
waitVideoMessage
Link copied to clipboard
suspend fun BehaviourContext . waitVideoMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = false, filter: SimpleFilter < CommonMessage < VideoContent >>? = null, mapper: CommonMessageToCommonMessageMapper < VideoContent >? = null): List < CommonMessage < 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
waitVideoNoteMessage
Link copied to clipboard
suspend fun BehaviourContext . waitVideoNoteMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < VideoNoteContent >>? = null, mapper: CommonMessageToCommonMessageMapper < VideoNoteContent >? = null): List < CommonMessage < 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
waitVisualMediaGroupContentMessage
Link copied to clipboard
suspend fun BehaviourContext . waitVisualMediaGroupContentMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, includeMediaGroups: Boolean = true, filter: SimpleFilter < CommonMessage < VisualMediaGroupContent >>? = null, mapper: CommonMessageToCommonMessageMapper < VisualMediaGroupContent >? = null): List < CommonMessage < 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
waitVoiceMessage
Link copied to clipboard
suspend fun BehaviourContext . waitVoiceMessage ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < CommonMessage < VoiceContent >>? = null, mapper: CommonMessageToCommonMessageMapper < VoiceContent >? = null): List < CommonMessage < VoiceContent >>
Content copied to clipboard
waitWebAppDataEvents
Link copied to clipboard
suspend fun BehaviourContext . waitWebAppDataEvents ( initRequest: Request <*>? = null, errorFactory: NullableRequestBuilder <*> = { null }, count: Int = 1, filter: SimpleFilter < PrivateEventMessage < WebAppData >>? = null, mapper: EventMessageToEventMapper < WebAppData >? = null): List < WebAppData >
Content copied to clipboard