Package-level declarations

Types

Link copied to clipboard
typealias CallbackQueryMapper<T> = suspend T.() -> T?
Link copied to clipboard
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 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 NullableRequestBuilder<T> = suspend (Update) -> Request<T>?
Link copied to clipboard
Link copied to clipboard
typealias PollAnswerMapper = suspend PollAnswer.() -> PollAnswer?
Link copied to clipboard
typealias PollMapper<T> = suspend T.() -> T?
Link copied to clipboard
Link copied to clipboard
typealias RequestBuilder<T> = suspend (Update) -> Request<T>
Link copied to clipboard

Functions

Link copied to clipboard
inline suspend fun <T : MediaGroupPartContent> BehaviourContext.buildMediaGroupMessagesWaiter(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupMessage<T>>
Link copied to clipboard
inline suspend fun <T : MediaGroupPartContent> BehaviourContext.buildMediaGroupWaiter(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupContent<T>>
Link copied to clipboard
Link copied to clipboard
fun Flow<CommonMessage<TextContent>>.commandsWithArgs(argsSeparator: Regex = TelegramBotCommandsDefaults.defaultArgsSeparatorRegex): Flow<Pair<CommonMessage<TextContent>, List<Pair<String, Array<String>>>>>

Uses parseCommandsWithArgs on incoming text sources and map them with CommonMessage

Link copied to clipboard
fun Flow<CommonMessage<TextContent>>.commandsWithNamedArgs(argsSeparator: String, nameArgSeparator: Regex = TelegramBotCommandsDefaults.defaultNamesArgsSeparatorRegex): Flow<Pair<CommonMessage<TextContent>, List<Pair<String, List<Pair<String, String>>>>>>
fun Flow<CommonMessage<TextContent>>.commandsWithNamedArgs(argsSeparator: Regex = TelegramBotCommandsDefaults.defaultArgsSeparatorRegex, nameArgSeparator: Regex = TelegramBotCommandsDefaults.defaultNamesArgsSeparatorRegex): Flow<Pair<CommonMessage<TextContent>, List<Pair<String, List<Pair<String, String>>>>>>

Uses parseCommandsWithNamedArgs on incoming text sources and map them with CommonMessage

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

Uses isWithMention passing username as argument to take only messages with username mentions or text mentions

Uses isWithMention passing user as argument to take only messages with user mentions or text mentions

Link copied to clipboard

Uses isWithMention passing username as argument to take only messages with username mentions or text mentions

Uses isWithMention passing user as argument to take only messages with user mentions or text mentions

Link copied to clipboard

Uses isWithTextMention passing userId as argument to take only messages with userId text mentions

Link copied to clipboard

Uses isWithTextMention passing userId as argument to take only messages with userId text mentions

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
Link copied to clipboard
inline fun <T : MessageContent> Flow<MessageContent>.mapContent(): Flow<T>
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

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.waitAnyContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MessageContent>
Link copied to clipboard
suspend fun BehaviourContext.waitAnyContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<MessageContent>>
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 }): Flow<MediaGroupPartContent>
Link copied to clipboard
suspend fun BehaviourContext.waitAnyMediaGroupContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<MediaGroupPartContent>>
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 }): Flow<AudioContent>
Link copied to clipboard
suspend fun BehaviourContext.waitAudioMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<AudioMediaGroupPartContent>
Link copied to clipboard
suspend fun BehaviourContext.waitAudioMediaGroupContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<AudioMediaGroupPartContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitAudioMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): 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
suspend fun BehaviourContext.waitBusinessConnection(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<BusinessConnection>
Link copied to clipboard
suspend fun BehaviourContext.waitBusinessConnectionDisabled(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<BusinessConnection>
Link copied to clipboard
suspend fun BehaviourContext.waitBusinessConnectionEnabled(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<BusinessConnection>
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.waitChatBackgroundSet(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatBackground>
Link copied to clipboard
suspend fun BehaviourContext.waitChatBackgroundSetEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ChatBackground>>
Link copied to clipboard
suspend fun BehaviourContext.waitChatBoostAdded(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatBoostAdded>
Link copied to clipboard
suspend fun BehaviourContext.waitChatBoostAddedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ChatBoostAdded>>
Link copied to clipboard
suspend fun BehaviourContext.waitChatBoostRemoved(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatBoostRemoved>
Link copied to clipboard
suspend fun BehaviourContext.waitChatBoostUpdated(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatBoostUpdated>
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
inline suspend fun BehaviourContext.waitChatMessageReactionsCountUpdated(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatMessageReactionsCountUpdated>
Link copied to clipboard
inline suspend fun <O : ChatMessageReactionUpdated> BehaviourContext.waitChatMessageReactionUpdated(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
suspend fun BehaviourContext.waitChatMessageReactionUpdatedByChat(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatMessageReactionUpdated.ByChat>
Link copied to clipboard
suspend fun BehaviourContext.waitChatMessageReactionUpdatedByUser(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatMessageReactionUpdated.ByUser>
Link copied to clipboard
suspend fun BehaviourContext.waitChatShared(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatShared>
Link copied to clipboard
suspend fun BehaviourContext.waitChatSharedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ChatShared>>
Link copied to clipboard
suspend fun BehaviourContext.waitChatSharedRequest(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatSharedRequest>
Link copied to clipboard
suspend fun BehaviourContext.waitChatSharedRequestEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ChatSharedRequest>>
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(botCommand: BotCommand, initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextContent>>
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 BehaviourContext.waitContent(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<MessageContent>
Link copied to clipboard
inline suspend fun BehaviourContext.waitContentMessage(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<MessageContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitContentMessageWithMentions(username: Username, initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextedContent>>

Creates cold Flow with the messages with TextedContent where username has been mentioned

suspend fun BehaviourContext.waitContentMessageWithMentions(user: User, initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextedContent>>

Creates cold Flow with the messages with TextedContent where user has been mentioned as text or mentioned with text

Link copied to clipboard
suspend fun BehaviourContext.waitContentMessageWithTextMentions(userId: UserId, initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextedContent>>

Creates cold Flow with the messages with TextedContent where userId has been mentioned with text

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

Creates cold Flow with the messages with TextedContent where username has been mentioned

suspend fun BehaviourContext.waitContentWithMentions(user: User, initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<TextedContent>

Creates cold Flow with the messages with TextedContent where user has been mentioned as text or mentioned with text

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

Creates cold Flow with the messages with TextedContent where userId has been mentioned with text

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>>
suspend fun BehaviourContext.waitDeepLinks(deepLink: String, initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<Pair<CommonMessage<TextContent>, String>>
suspend fun BehaviourContext.waitDeepLinks(regex: Regex, 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.waitDeletedBusinessMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<BusinessMessagesDeleted>
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 }): Flow<DocumentContent>
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<DocumentMediaGroupPartContent>
Link copied to clipboard
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<DocumentContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentsGroup(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupContent<DocumentMediaGroupPartContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitDocumentsGroupMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupMessage<DocumentMediaGroupPartContent>>
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 }): Flow<MediaGroupPartContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAnyMediaGroupContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<MediaGroupPartContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAudio(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<AudioContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAudioMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<AudioMediaGroupPartContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAudioMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): 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, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MessageContent>
inline suspend fun <O : MessageContent> BehaviourContext.waitEditedContentMessage(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<O>>
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 }): Flow<DocumentContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedDocumentMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<DocumentMediaGroupPartContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedDocumentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): 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.waitEditedGiveawayContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GiveawayContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedGiveawayContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<GiveawayContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedGiveawayPublicResultsContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GiveawayPublicResultsContent>
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 }): Flow<MediaContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedMediaMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<MediaContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedMessageContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MessageContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedMessageContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<MessageContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedPhoto(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<PhotoContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedPhotoMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): 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 }): Flow<TextedMediaContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedTextedMediaContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): 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 }): Flow<VideoContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedVideoMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): 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 }): Flow<VisualMediaGroupPartContent>
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.waitForumTopicClosed(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ForumTopicClosed>
Link copied to clipboard
suspend fun BehaviourContext.waitForumTopicClosedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ForumTopicClosed>>
Link copied to clipboard
suspend fun BehaviourContext.waitForumTopicCreated(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ForumTopicCreated>
Link copied to clipboard
suspend fun BehaviourContext.waitForumTopicCreatedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ForumTopicCreated>>
Link copied to clipboard
suspend fun BehaviourContext.waitForumTopicEdited(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ForumTopicEdited>
Link copied to clipboard
suspend fun BehaviourContext.waitForumTopicEditedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ForumTopicEdited>>
Link copied to clipboard
suspend fun BehaviourContext.waitForumTopicReopened(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ForumTopicReopened>
Link copied to clipboard
suspend fun BehaviourContext.waitForumTopicReopenedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<ForumTopicReopened>>
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.waitGeneralForumTopicHidden(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GeneralForumTopicHidden>
Link copied to clipboard
suspend fun BehaviourContext.waitGeneralForumTopicUnhidden(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GeneralForumTopicUnhidden>
Link copied to clipboard
suspend fun BehaviourContext.waitGiveawayContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GiveawayContent>
Link copied to clipboard
suspend fun BehaviourContext.waitGiveawayContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<GiveawayContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitGiveawayPublicResultsContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<GiveawayPublicResultsContent>
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>
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<LeftChatMemberEvent>
Link copied to clipboard
suspend fun BehaviourContext.waitLeftChatMemberEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<LeftChatMemberEvent>>
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 }): Flow<MediaContent>
Link copied to clipboard
suspend fun BehaviourContext.waitMediaContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaContent>
Link copied to clipboard
suspend fun BehaviourContext.waitMediaContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<MediaContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitMediaGroup(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupContent<MediaGroupPartContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitMediaGroupMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupMessage<MediaGroupPartContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitMediaMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<MediaContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitMessageAutoDeleteTimerChangedEvents(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<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 }): Flow<PhotoContent>
Link copied to clipboard
suspend fun BehaviourContext.waitPhotoGallery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupContent<PhotoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitPhotoGalleryMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupMessage<PhotoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitPhotoMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): 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<MediaGroupContent<AudioMediaGroupPartContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitPlaylistMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupMessage<AudioMediaGroupPartContent>>
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>
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.waitStory(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<StoryContent>
Link copied to clipboard
suspend fun BehaviourContext.waitStoryMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<StoryContent>>
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
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.waitTextedContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<TextedContent>
Link copied to clipboard
suspend fun BehaviourContext.waitTextedContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<TextedContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitTextedMediaContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<TextedMediaContent>
Link copied to clipboard
suspend fun BehaviourContext.waitTextedMediaContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): 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.waitUserShared(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<UsersShared>
Link copied to clipboard
suspend fun BehaviourContext.waitUserSharedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<UsersShared>>
Link copied to clipboard
suspend fun BehaviourContext.waitUsersShared(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<UsersShared>
Link copied to clipboard
suspend fun BehaviourContext.waitUsersSharedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<UsersShared>>
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 }): 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>
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<MediaGroupContent<VideoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoGalleryMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupMessage<VideoContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVideoMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): 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.waitVisualContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VisualMediaGroupPartContent>
Link copied to clipboard
suspend fun BehaviourContext.waitVisualContentMessage(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<CommonMessage<VisualMediaGroupPartContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVisualGallery(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupContent<VisualMediaGroupPartContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVisualGalleryMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<MediaGroupMessage<VisualMediaGroupPartContent>>
Link copied to clipboard
suspend fun BehaviourContext.waitVisualMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<VisualMediaGroupPartContent>
Link copied to clipboard
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>>
Link copied to clipboard
suspend fun BehaviourContext.waitWriteAccessAllowed(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<WriteAccessAllowed>
Link copied to clipboard
suspend fun BehaviourContext.waitWriteAccessAllowedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<WriteAccessAllowed>>
Link copied to clipboard
suspend fun BehaviourContext.waitWriteAccessAllowedFromRequest(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<WriteAccessAllowed.FromRequest>
Link copied to clipboard
suspend fun BehaviourContext.waitWriteAccessAllowedFromWebAppLink(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<WriteAccessAllowed.FromWebAppLink>
Link copied to clipboard
suspend fun BehaviourContext.waitWriteAccessAllowedOther(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<WriteAccessAllowed.Other>