Package dev.inmo.tgbotapi.extensions.behaviour_builder.expectations

Types

Link copied to clipboard
typealias CallbackQueryMapper<T> = suspend T.() -> T?
Link copied to clipboard
typealias ChatJoinRequestsMapper = suspend ChatJoinRequest.() -> ChatJoinRequest?
Link copied to clipboard
typealias ChatMemberUpdatedMapper<T> = suspend T.() -> T?
Link copied to clipboard
typealias ChosenInlineResultMapper<T> = suspend T.() -> T?
Link copied to clipboard
typealias CommonMessageToCommonMessageMapper<T> = suspend CommonMessage<T>.() -> CommonMessage<T>?
Link copied to clipboard
typealias CommonMessageToContentMapper<T> = suspend CommonMessage<T>.() -> T?
Link copied to clipboard
typealias EventMessageToEventMapper<T> = suspend ChatEventMessage<T>.() -> T?
Link copied to clipboard
typealias InlineQueryMapper<T> = suspend T.() -> T?
Link copied to clipboard
typealias MediaGroupFilter<T> = SimpleFilter<List<MediaGroupMessage<T>>>
Link copied to clipboard
typealias NullableRequestBuilder<T> = suspend (Update) -> Request<T>?
Link copied to clipboard
typealias PassportMessageMapper = suspend PassportMessage.() -> PassportData
Link copied to clipboard
typealias PollAnswerMapper = suspend PollAnswer.() -> PollAnswer?
Link copied to clipboard
typealias PollMapper<T> = suspend T.() -> T?
Link copied to clipboard
typealias PreCheckoutQueryMapper = suspend PreCheckoutQuery.() -> PreCheckoutQuery?
Link copied to clipboard
typealias RequestBuilder<T> = suspend (Update) -> Request<T>
Link copied to clipboard
typealias ShippingQueryMapper = suspend ShippingQuery.() -> ShippingQuery?

Functions

Link copied to clipboard
inline suspend fun <T : MediaGroupContent> BehaviourContext.buildMediaGroupMessagesWaiter(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<MediaGroupMessage<T>>>
Link copied to clipboard
inline suspend fun <O : MediaGroupContent> BehaviourContext.buildMediaGroupWaiter(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<O>>
Link copied to clipboard
fun Flow<CommonMessage<TextContent>>.commandParams(commandRegex: Regex): Flow<Pair<CommonMessage<TextContent>, Pair<BotCommandTextSource, Array<TextSource>>>>

Use flattenCommandsWithParams and filter out the commands which do not matches to commandRegex

Link copied to clipboard

Map the commands with their arguments and source messages

Link copied to clipboard
suspend fun <T> BehaviourContext.expectFlow(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     cancelRequestFactory: NullableRequestBuilder<*> = { null },     cancelTrigger: suspend (Update) -> Boolean = { cancelRequestFactory(it) != null },     filter: suspend (Update) -> List<T>): Flow<T>
suspend fun <T> FlowsUpdatesFilter.expectFlow(    bot: TelegramBot,     initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     cancelRequestFactory: NullableRequestBuilder<*> = { null },     cancelTrigger: suspend (Update) -> Boolean = { cancelRequestFactory(it) != null },     filter: suspend (Update) -> List<T>): Flow<T>
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
suspend fun <T> FlowsUpdatesFilter.expectOne(    bot: TelegramBot,     initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     cancelRequestFactory: NullableRequestBuilder<*> = { null },     cancelTrigger: suspend (Update) -> Boolean = { cancelRequestFactory(it) != null },     filter: suspend (Update) -> T?): T
Link copied to clipboard

Flat commandsWithParams. Each Pair of BotCommandTextSource and its Array of arg text sources will be associated with its source message

Link copied to clipboard
inline suspend fun <O> BehaviourContext.internalWaitChatJoinRequests(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
fun Flow<CommonMessage<TextContent>>.requireCommandAtStart(): Flow<CommonMessage<TextContent>>
Link copied to clipboard
fun Flow<CommonMessage<TextContent>>.requireCommandsWithoutParams(): Flow<CommonMessage<TextContent>>

Subsequent Flow will retrieve only messages without TextContent.textSources which are not BotCommandTextSource

Link copied to clipboard
fun Flow<CommonMessage<TextContent>>.requireSingleCommand(): Flow<CommonMessage<TextContent>>

Subsequent Flow will retrieve only messages with ONE BotCommandTextSource. It does not guarantee that this BotCommandTextSource will be at the start of the message

Link copied to clipboard
suspend fun BehaviourContext.waitAnimation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<AnimationContent>
Link copied to clipboard
suspend fun BehaviourContext.waitAnimationMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<AnimationContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitAnyInlineQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<InlineQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitAnyMediaGroupContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<MediaGroupContent>
Link copied to clipboard
suspend fun BehaviourContext.waitAnyMediaGroupContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<MediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitAnyPassportMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<EncryptedPassportElement>
Link copied to clipboard
suspend fun BehaviourContext.waitAudio(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<AudioContent>
Link copied to clipboard
suspend fun BehaviourContext.waitAudioMediaGroupContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<AudioMediaGroupContent>
Link copied to clipboard
suspend fun BehaviourContext.waitAudioMediaGroupContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<AudioMediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitAudioMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<AudioContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitBaseChosenInlineResult(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<BaseChosenInlineResult>
Link copied to clipboard
suspend fun BehaviourContext.waitBaseInlineQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<BaseInlineQuery>
Link copied to clipboard
inline suspend fun <O> BehaviourContext.waitCallbackQueries(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
suspend fun BehaviourContext.waitChannelChatCreatedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChannelChatCreated>
Link copied to clipboard
suspend fun BehaviourContext.waitChannelChatCreatedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ChannelChatCreated>>
Link copied to clipboard
suspend fun BehaviourContext.waitChannelEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChannelEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitChannelEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ChannelEvent>>
Link copied to clipboard
suspend fun BehaviourContext.waitChatEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitChatEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ChatEvent>>
Link copied to clipboard
suspend fun BehaviourContext.waitChatJoinRequests(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatJoinRequest>
Link copied to clipboard
suspend fun BehaviourContext.waitChatMemberUpdated(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatMemberUpdated>
Link copied to clipboard
inline suspend fun <O : ChatMemberUpdatedUpdate> BehaviourContext.waitChatMemberUpdatedWithFilter(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatMemberUpdated>
Link copied to clipboard
suspend fun BehaviourContext.waitChosenInlineResult(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChosenInlineResult>
Link copied to clipboard
inline suspend fun <O> BehaviourContext.waitChosenInlineResults(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
suspend fun BehaviourContext.waitCommandMessage(    command: String,     initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextContent>>

suspend fun BehaviourContext.waitCommandMessage(    commandRegex: Regex,     initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextContent>>

Will filter all the messages and include required commands with commandRegex.

Link copied to clipboard
suspend fun BehaviourContext.waitCommonChatMemberUpdated(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatMemberUpdated>
Link copied to clipboard
suspend fun BehaviourContext.waitCommonEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitCommonEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<CommonEvent>>
Link copied to clipboard
suspend fun BehaviourContext.waitContact(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ContactContent>
Link copied to clipboard
suspend fun BehaviourContext.waitContactMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<ContactContent>>
Link copied to clipboard
inline suspend fun <O : MessageContent> BehaviourContext.waitContent(    initRequest: Request<*>? = null,     includeMediaGroups: Boolean = true,     noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
suspend fun BehaviourContext.waitContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<MessageContent>
Link copied to clipboard
inline suspend fun <O : MessageContent> BehaviourContext.waitContentMessage(    initRequest: Request<*>? = null,     includeMediaGroups: Boolean = true,     noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<O>>
suspend fun BehaviourContext.waitContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<MessageContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitDataCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<DataCallbackQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitDeepLinks(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<Pair<CommonMessage<TextContent>, String>>
Link copied to clipboard
suspend fun BehaviourContext.waitDeleteChatPhotoEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<DeleteChatPhoto>
Link copied to clipboard
suspend fun BehaviourContext.waitDeleteChatPhotoEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<DeleteChatPhoto>>
Link copied to clipboard
suspend fun BehaviourContext.waitDice(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<DiceContent>
Link copied to clipboard
suspend fun BehaviourContext.waitDiceMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<DiceContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitDocument(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<DocumentContent>
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentMediaGroupContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<DocumentMediaGroupContent>
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentMediaGroupContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<DocumentMediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<DocumentContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentsGroup(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<DocumentMediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentsGroupMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<MediaGroupMessage<DocumentMediaGroupContent>>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAnimation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<AnimationContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAnimationMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<AnimationContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAnyMediaGroupContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<MediaGroupContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAnyMediaGroupContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<MediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAudio(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<AudioContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAudioMediaGroupContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<AudioMediaGroupContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAudioMediaGroupContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<AudioMediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAudioMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<AudioContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedContact(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ContactContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedContactMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<ContactContent>>
Link copied to clipboard
inline suspend fun <O : MessageContent> BehaviourContext.waitEditedContent(    initRequest: Request<*>? = null,     includeMediaGroups: Boolean = true,     noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
inline suspend fun <O : MessageContent> BehaviourContext.waitEditedContentMessage(    initRequest: Request<*>? = null,     includeMediaGroups: Boolean = true,     noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<O>>
suspend fun BehaviourContext.waitEditedContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<MessageContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedDice(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<DiceContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedDiceMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<DiceContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedDocument(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<DocumentContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedDocumentMediaGroupContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<DocumentMediaGroupContent>
suspend fun BehaviourContext.waitEditedDocumentMediaGroupContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<DocumentMediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedDocumentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<DocumentContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedGame(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GameContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedGameMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<GameContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedInvoice(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<InvoiceContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedInvoiceMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<InvoiceContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedLiveLocation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<LiveLocationContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedLiveLocationMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<LiveLocationContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedLocation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<LocationContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedLocationMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<LocationContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedMedia(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<MediaContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedMediaMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<MediaContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedMessageContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<MessageContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedMessageContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<MessageContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedPhoto(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<PhotoContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedPhotoMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<PhotoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedStaticLocation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<StaticLocationContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedStaticLocationMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<StaticLocationContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedSticker(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<StickerContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedStickerMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<StickerContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedText(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<TextContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedTextedMediaContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<TextedMediaContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedTextedMediaContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<TextedMediaContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedTextMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVenue(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VenueContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVenueMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<VenueContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVideo(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<VideoContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVideoMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<VideoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVideoNote(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VideoNoteContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVideoNoteMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<VideoNoteContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVisualMediaGroupContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<VisualMediaGroupContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVisualMediaGroupContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<VisualMediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVoice(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VoiceContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVoiceMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<VoiceContent>>
Link copied to clipboard
inline suspend fun <O : ChatEvent> BehaviourContext.waitEvents(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
inline suspend fun <O : ChatEvent> BehaviourContext.waitEventsMessages(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<O>>
Link copied to clipboard
suspend fun BehaviourContext.waitGame(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GameContent>
Link copied to clipboard
suspend fun BehaviourContext.waitGameMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<GameContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitGameShortNameCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GameShortNameCallbackQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitGroupChatCreatedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GroupChatCreated>
Link copied to clipboard
suspend fun BehaviourContext.waitGroupChatCreatedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<GroupChatCreated>>
Link copied to clipboard
suspend fun BehaviourContext.waitGroupEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GroupEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitGroupEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<GroupEvent>>
Link copied to clipboard
suspend fun BehaviourContext.waitInlineMessageIdCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<InlineMessageIdCallbackQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitInlineMessageIdDataCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<InlineMessageIdDataCallbackQuery>
suspend fun BehaviourContext.waitInlineMessageIdGameShortNameCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<InlineMessageIdGameShortNameCallbackQuery>
Link copied to clipboard
inline suspend fun <O : InlineQuery> BehaviourContext.waitInlineQueries(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
suspend fun BehaviourContext.waitInvoice(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<InvoiceContent>
Link copied to clipboard
suspend fun BehaviourContext.waitInvoiceMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<InvoiceContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitLeftChatMemberEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<LeftChatMember>
Link copied to clipboard
suspend fun BehaviourContext.waitLeftChatMemberEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<LeftChatMember>>
Link copied to clipboard
suspend fun BehaviourContext.waitLiveLocation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<LiveLocationContent>
Link copied to clipboard
suspend fun BehaviourContext.waitLiveLocationMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<LiveLocationContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitLocation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<LocationContent>
Link copied to clipboard
suspend fun BehaviourContext.waitLocationChosenInlineResult(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<LocationChosenInlineResult>
Link copied to clipboard
suspend fun BehaviourContext.waitLocationInlineQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<LocationInlineQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitLocationMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<LocationContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitMedia(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<MediaContent>
Link copied to clipboard
suspend fun BehaviourContext.waitMediaGroup(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<MediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitMediaGroupMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<MediaGroupMessage<MediaGroupContent>>>
Link copied to clipboard
suspend fun BehaviourContext.waitMediaMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<MediaContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitMessageAutoDeleteTimerChangedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MessageAutoDeleteTimerChanged>
suspend fun BehaviourContext.waitMessageAutoDeleteTimerChangedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<MessageAutoDeleteTimerChanged>>
Link copied to clipboard
suspend fun BehaviourContext.waitMessageCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MessageCallbackQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitMessageDataCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MessageDataCallbackQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitMessageGameShortNameCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MessageGameShortNameCallbackQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitMyChatMemberUpdated(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatMemberUpdated>
Link copied to clipboard
suspend fun BehaviourContext.waitNewChatMembersEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<NewChatMembers>
Link copied to clipboard
suspend fun BehaviourContext.waitNewChatMembersEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<NewChatMembers>>
Link copied to clipboard
suspend fun BehaviourContext.waitNewChatPhotoEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<NewChatPhoto>
Link copied to clipboard
suspend fun BehaviourContext.waitNewChatPhotoEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<NewChatPhoto>>
Link copied to clipboard
suspend fun BehaviourContext.waitNewChatTitleEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<NewChatTitle>
Link copied to clipboard
suspend fun BehaviourContext.waitNewChatTitleEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<NewChatTitle>>
Link copied to clipboard
inline suspend fun <O : EncryptedPassportElement> BehaviourContext.waitPassportMessagesWith(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
suspend fun BehaviourContext.waitPhoto(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<PhotoContent>
Link copied to clipboard
suspend fun BehaviourContext.waitPhotoGallery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<PhotoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitPhotoGalleryMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<MediaGroupMessage<PhotoContent>>>
Link copied to clipboard
suspend fun BehaviourContext.waitPhotoMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<PhotoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitPinnedMessageEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<PinnedMessage>
Link copied to clipboard
suspend fun BehaviourContext.waitPinnedMessageEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<PinnedMessage>>
Link copied to clipboard
suspend fun BehaviourContext.waitPlaylist(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<AudioMediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitPlaylistMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<MediaGroupMessage<AudioMediaGroupContent>>>
Link copied to clipboard
suspend fun BehaviourContext.waitPoll(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<PollContent>
Link copied to clipboard
suspend fun BehaviourContext.waitPollAnswers(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<PollAnswer>
Link copied to clipboard
suspend fun BehaviourContext.waitPollMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<PollContent>>
Link copied to clipboard
inline suspend fun <O : Poll> BehaviourContext.waitPolls(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
suspend fun BehaviourContext.waitPollUpdates(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<Poll>

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

Link copied to clipboard
suspend fun BehaviourContext.waitPreCheckoutQueries(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<PreCheckoutQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitPrivateEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<PrivateEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitPrivateEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<PrivateEvent>>
Link copied to clipboard
suspend fun BehaviourContext.waitProximityAlertTriggeredEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ProximityAlertTriggered>
suspend fun BehaviourContext.waitProximityAlertTriggeredEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ProximityAlertTriggered>>
Link copied to clipboard
suspend fun BehaviourContext.waitPublicChatEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<PublicChatEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitPublicChatEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<PublicChatEvent>>
Link copied to clipboard
suspend fun BehaviourContext.waitQuizPollUpdates(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<QuizPoll>

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

Link copied to clipboard
suspend fun BehaviourContext.waitRegularPollUpdates(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<RegularPoll>

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

Link copied to clipboard
suspend fun BehaviourContext.waitShippingQueries(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ShippingQuery>
Link copied to clipboard
suspend fun BehaviourContext.waitStaticLocation(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<StaticLocationContent>
Link copied to clipboard
suspend fun BehaviourContext.waitStaticLocationMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<StaticLocationContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitSticker(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<StickerContent>
Link copied to clipboard
suspend fun BehaviourContext.waitStickerMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<StickerContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitSuccessfulPaymentEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<SuccessfulPaymentEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitSuccessfulPaymentEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<SuccessfulPaymentEvent>>
Link copied to clipboard
suspend fun BehaviourContext.waitSupergroupChatCreatedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<SupergroupChatCreated>
Link copied to clipboard
suspend fun BehaviourContext.waitSupergroupChatCreatedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<SupergroupChatCreated>>
Link copied to clipboard
suspend fun BehaviourContext.waitSupergroupEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<SupergroupEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitSupergroupEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<SupergroupEvent>>
Link copied to clipboard
suspend fun BehaviourContext.waitText(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<TextContent>
Link copied to clipboard
suspend fun BehaviourContext.waitTextedMediaContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<TextedMediaContent>
Link copied to clipboard
suspend fun BehaviourContext.waitTextedMediaContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<TextedMediaContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitTextMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitUnknownCallbackQuery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<UnknownCallbackQueryType>
Link copied to clipboard
suspend fun BehaviourContext.waitUserLoggedInEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<UserLoggedIn>
Link copied to clipboard
suspend fun BehaviourContext.waitUserLoggedInEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<UserLoggedIn>>
Link copied to clipboard
suspend fun BehaviourContext.waitVenue(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VenueContent>
Link copied to clipboard
suspend fun BehaviourContext.waitVenueMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<VenueContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideo(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<VideoContent>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoChatEndedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VideoChatEnded>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoChatEndedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<VideoChatEnded>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoChatEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VideoChatEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoChatEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<VideoChatEvent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoChatParticipantsInvitedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VideoChatParticipantsInvited>
suspend fun BehaviourContext.waitVideoChatParticipantsInvitedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<VideoChatParticipantsInvited>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoChatStartedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VideoChatStarted>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoChatStartedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<VideoChatStarted>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoGallery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<VideoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoGalleryMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<MediaGroupMessage<VideoContent>>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = false): Flow<CommonMessage<VideoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoNote(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VideoNoteContent>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoNoteMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<VideoNoteContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVisualGallery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<VisualMediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVisualGalleryMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<List<MediaGroupMessage<VisualMediaGroupContent>>>
Link copied to clipboard
suspend fun BehaviourContext.waitVisualMediaGroupContent(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<VisualMediaGroupContent>
Link copied to clipboard
suspend fun BehaviourContext.waitVisualMediaGroupContentMessage(    initRequest: Request<*>? = null,     errorFactory: NullableRequestBuilder<*> = { null },     includeMediaGroups: Boolean = true): Flow<CommonMessage<VisualMediaGroupContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVoice(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VoiceContent>
Link copied to clipboard
suspend fun BehaviourContext.waitVoiceMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<VoiceContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitWebAppDataEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<WebAppData>
Link copied to clipboard
suspend fun BehaviourContext.waitWebAppDataEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<WebAppData>>