DefaultBehaviourContext

class DefaultBehaviourContext(val bot: TelegramBot, val scope: CoroutineScope, broadcastChannelsSize: Int = 100, onBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND, upstreamUpdatesFlow: Flow<Update>? = null, val triggersHolder: TriggersHolder = TriggersHolder()) : AbstractFlowsUpdatesFilter, RequestsExecutor, CoroutineScope, BehaviourContext

Constructors

Link copied to clipboard
constructor(bot: TelegramBot, scope: CoroutineScope, broadcastChannelsSize: Int = 100, onBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND, upstreamUpdatesFlow: Flow<Update>? = null, triggersHolder: TriggersHolder = TriggersHolder())

Properties

Link copied to clipboard
open override val allowedUpdates: List<String>
Link copied to clipboard
open override val allUpdatesFlow: Flow<Update>
Link copied to clipboard
Link copied to clipboard
open override val bot: TelegramBot
Link copied to clipboard
open override val callbackQueriesFlow: Flow<CallbackQueryUpdate>
Link copied to clipboard
open override val channelPostsFlow: Flow<ChannelPostUpdate>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val editedMessagesFlow: Flow<EditMessageUpdate>
Link copied to clipboard

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

Link copied to clipboard
open override val inlineQueriesFlow: Flow<InlineQueryUpdate>
Link copied to clipboard
Link copied to clipboard
open override val messagesFlow: Flow<MessageUpdate>
Link copied to clipboard
Link copied to clipboard
open override val pollAnswersFlow: Flow<PollAnswerUpdate>
Link copied to clipboard
open override val pollsFlow: Flow<PollUpdate>
Link copied to clipboard
Link copied to clipboard
open override val scope: CoroutineScope

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

Link copied to clipboard
open override val shippingQueriesFlow: Flow<ShippingQueryUpdate>
Link copied to clipboard
open override val triggersHolder: TriggersHolder
Link copied to clipboard
open override val unknownUpdatesFlow: Flow<UnknownUpdate>

Functions

Link copied to clipboard
suspend fun TelegramBot.buildBehaviour(flowUpdatesFilter: FlowsUpdatesFilter = FlowsUpdatesFilter(), scope: CoroutineScope = defaultCoroutineScopeProvider(), defaultExceptionsHandler: ExceptionHandler<Unit>? = null, block: BehaviourContextReceiver<Unit>): BehaviourContext

Use this method in case you wish to make some additional actions with flowUpdatesFilter.

Link copied to clipboard
suspend fun TelegramBot.buildBehaviourWithLongPolling(scope: CoroutineScope = defaultCoroutineScopeProvider(), defaultExceptionsHandler: ExceptionHandler<Unit>? = null, timeoutSeconds: Seconds = 30, autoDisableWebhooks: Boolean = true, autoSkipTimeoutExceptions: Boolean = true, mediaGroupsDebounceTimeMillis: Long? = 1000, block: BehaviourContextReceiver<Unit>): Job

Use this method to build bot behaviour and run it via long polling. In case you wish to get FlowsUpdatesFilter for additional manipulations, you must provide external FlowsUpdatesFilter in other buildBehaviour function.

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
expect open override fun close()
Link copied to clipboard
open override fun copy(bot: TelegramBot, scope: CoroutineScope, broadcastChannelsSize: Int, onBufferOverflow: BufferOverflow, upstreamUpdatesFlow: Flow<Update>?, triggersHolder: TriggersHolder): DefaultBehaviourContext
Link copied to clipboard
open suspend override fun <T : Any> execute(request: Request<T>): T
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

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

Link copied to clipboard
inline suspend fun <O> BehaviourContext.internalWaitChatJoinRequests(initRequest: Request<*>? = null, noinline errorFactory: NullableRequestBuilder<*> = { null }): Flow<O>
Link copied to clipboard
suspend fun <O> BehaviourContext.oneOf(vararg deferredActions: Deferred<O>): O
suspend fun <O> BehaviourContext.oneOf(deferredActions: Iterable<Deferred<O>>): O
Link copied to clipboard
suspend fun <O> BehaviourContext.oneOfActions(vararg deferredActions: DeferredAction<*, O>): O
suspend fun <O> BehaviourContext.oneOfActions(deferredActions: Iterable<DeferredAction<*, O>>): O
Link copied to clipboard
suspend fun <T> BehaviourContext.parallel(action: BehaviourContextReceiver<T>): Deferred<T>
Link copied to clipboard

This method will cancel ALL subsequent contexts, expectations and waiters

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
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.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.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 }, includeMediaGroups: Boolean = true): 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 }, includeMediaGroups: Boolean = false): Flow<AudioContent>
Link copied to clipboard
suspend fun BehaviourContext.waitEditedAudioMediaGroupContent(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }, includeMediaGroups: Boolean = true): Flow<AudioMediaGroupPartContent>
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, 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<DocumentMediaGroupPartContent>
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 }): 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 }): 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<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.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<UserShared>
Link copied to clipboard
suspend fun BehaviourContext.waitUserSharedEventsMessages(initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null }): Flow<ChatEventMessage<UserShared>>
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>