Package dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling

Types

CommonMessageFilter
Link copied to clipboard
common
typealias CommonMessageFilter<T> = suspend (CommonMessage<T>) -> Boolean

Functions

command
Link copied to clipboard
common
suspend fun BehaviourContext.command(command: String, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
suspend fun BehaviourContext.command(commandRegex: Regex, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
onAnimation
Link copied to clipboard
common
suspend fun BehaviourContext.onAnimation(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<AnimationContent>? = null, markerFactory: MarkerFactory<in CommonMessage<AnimationContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<AnimationContent>>): Job
onAnyInlineQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onAnyInlineQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (InlineQuery) -> Boolean? = null, markerFactory: MarkerFactory<in InlineQuery, Any> = ByUserInlineQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineQuery>): Job
onAudio
Link copied to clipboard
common
suspend fun BehaviourContext.onAudio(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<AudioContent>? = null, markerFactory: MarkerFactory<in CommonMessage<AudioContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<AudioContent>>): Job
onAudioMediaGroup
Link copied to clipboard
common
suspend fun BehaviourContext.onAudioMediaGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<AudioMediaGroupContent>? = null, markerFactory: MarkerFactory<in CommonMessage<AudioMediaGroupContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<AudioMediaGroupContent>>): Job
onBaseInlineQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onBaseInlineQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (BaseInlineQuery) -> Boolean? = null, markerFactory: MarkerFactory<in BaseInlineQuery, Any> = ByUserInlineQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, BaseInlineQuery>): Job
onChannelChatCreated
Link copied to clipboard
common
suspend fun BehaviourContext.onChannelChatCreated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<ChannelChatCreated>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<ChannelChatCreated>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ChannelChatCreated>>): Job
onChannelEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onChannelEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<ChannelEvent>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<ChannelEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ChannelEvent>>): Job
onChatEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onChatEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<ChatEvent>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<ChatEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ChatEvent>>): Job
onChatMemberUpdated
Link copied to clipboard
common
suspend fun BehaviourContext.onChatMemberUpdated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatMemberUpdated) -> Boolean? = null, markerFactory: MarkerFactory<ChatMemberUpdated, Any> = ByChatChatMemberUpdatedMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatMemberUpdated>): Job
onCommand
Link copied to clipboard
common
inline suspend fun BehaviourContext.onCommand(command: String, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, noinline additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, noinline scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
inline suspend fun BehaviourContext.onCommand(commandRegex: Regex, requireOnlyCommandInMessage: Boolean = true, includeFilterByChatInBehaviourSubContext: Boolean = true, noinline additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, noinline scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
onCommonChatMemberUpdated
Link copied to clipboard
common
suspend fun BehaviourContext.onCommonChatMemberUpdated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatMemberUpdated) -> Boolean? = null, markerFactory: MarkerFactory<ChatMemberUpdated, Any> = ByChatChatMemberUpdatedMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatMemberUpdated>): Job
onCommonEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onCommonEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<CommonEvent>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<CommonEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<CommonEvent>>): Job
onContact
Link copied to clipboard
common
suspend fun BehaviourContext.onContact(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<ContactContent>? = null, markerFactory: MarkerFactory<in CommonMessage<ContactContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<ContactContent>>): Job
onContentMessage
Link copied to clipboard
common
suspend fun BehaviourContext.onContentMessage(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<MessageContent>? = null, includeMediaGroups: Boolean = true, markerFactory: MarkerFactory<in CommonMessage<MessageContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<MessageContent>>): Job
onDataCallbackQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onDataCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (DataCallbackQuery) -> Boolean? = null, markerFactory: MarkerFactory<in DataCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, DataCallbackQuery>): Job
onDeleteChatPhoto
Link copied to clipboard
common
suspend fun BehaviourContext.onDeleteChatPhoto(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<DeleteChatPhoto>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<DeleteChatPhoto>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<DeleteChatPhoto>>): Job
onDice
Link copied to clipboard
common
suspend fun BehaviourContext.onDice(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<DiceContent>? = null, markerFactory: MarkerFactory<in CommonMessage<DiceContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<DiceContent>>): Job
onDocument
Link copied to clipboard
common
suspend fun BehaviourContext.onDocument(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<DocumentContent>? = null, markerFactory: MarkerFactory<in CommonMessage<DocumentContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<DocumentContent>>): Job
onDocumentMediaGroupContent
Link copied to clipboard
common
suspend fun BehaviourContext.onDocumentMediaGroupContent(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = true, additionalFilter: CommonMessageFilter<DocumentMediaGroupContent>? = null, markerFactory: MarkerFactory<in CommonMessage<DocumentMediaGroupContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<DocumentMediaGroupContent>>): Job
onDocumentsGroup
Link copied to clipboard
common
suspend fun BehaviourContext.onDocumentsGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<DocumentMediaGroupContent>>) -> Boolean? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<DocumentMediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<DocumentMediaGroupContent>>>): Job
onGame
Link copied to clipboard
common
suspend fun BehaviourContext.onGame(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<GameContent>? = null, markerFactory: MarkerFactory<in CommonMessage<GameContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<GameContent>>): Job
onGameShortNameCallbackQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onGameShortNameCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (GameShortNameCallbackQuery) -> Boolean? = null, markerFactory: MarkerFactory<in GameShortNameCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, GameShortNameCallbackQuery>): Job
onGroupChatCreated
Link copied to clipboard
common
suspend fun BehaviourContext.onGroupChatCreated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<GroupChatCreated>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<GroupChatCreated>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<GroupChatCreated>>): Job
onGroupEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onGroupEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<GroupEvent>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<GroupEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<GroupEvent>>): Job
onInlineMessageIdCallbackQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onInlineMessageIdCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (InlineMessageIdCallbackQuery) -> Boolean? = null, markerFactory: MarkerFactory<in InlineMessageIdCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineMessageIdCallbackQuery>): Job
onInlineMessageIdDataCallbackQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onInlineMessageIdDataCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (InlineMessageIdDataCallbackQuery) -> Boolean? = null, markerFactory: MarkerFactory<in InlineMessageIdDataCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineMessageIdDataCallbackQuery>): Job
common
suspend fun BehaviourContext.onInlineMessageIdGameShortNameCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (InlineMessageIdGameShortNameCallbackQuery) -> Boolean? = null, markerFactory: MarkerFactory<in InlineMessageIdGameShortNameCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, InlineMessageIdGameShortNameCallbackQuery>): Job
onInvoice
Link copied to clipboard
common
suspend fun BehaviourContext.onInvoice(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<InvoiceContent>? = null, markerFactory: MarkerFactory<in CommonMessage<InvoiceContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<InvoiceContent>>): Job
onLeftChatMember
Link copied to clipboard
common
suspend fun BehaviourContext.onLeftChatMember(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<LeftChatMember>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<LeftChatMember>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<LeftChatMember>>): Job
onLocation
Link copied to clipboard
common
suspend fun BehaviourContext.onLocation(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<LocationContent>? = null, markerFactory: MarkerFactory<in CommonMessage<LocationContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<LocationContent>>): Job
onLocationInlineQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onLocationInlineQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (LocationInlineQuery) -> Boolean? = null, markerFactory: MarkerFactory<in LocationInlineQuery, Any> = ByUserInlineQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, LocationInlineQuery>): Job
onMedia
Link copied to clipboard
common
suspend fun BehaviourContext.onMedia(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = true, additionalFilter: CommonMessageFilter<MediaContent>? = null, markerFactory: MarkerFactory<in CommonMessage<MediaContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<MediaContent>>): Job
onMediaCollection
Link copied to clipboard
common
suspend fun BehaviourContext.onMediaCollection(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: suspend (CommonMessage<MediaCollectionContent<TelegramMediaFile>>) -> Boolean? = null, markerFactory: MarkerFactory<in CommonMessage<MediaCollectionContent<TelegramMediaFile>>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<MediaCollectionContent<TelegramMediaFile>>>): Job
onMediaGroup
Link copied to clipboard
common
suspend fun BehaviourContext.onMediaGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<MediaGroupContent>>) -> Boolean? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<MediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<MediaGroupContent>>>): Job
onMessageAutoDeleteTimerChangedEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onMessageAutoDeleteTimerChangedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<MessageAutoDeleteTimerChanged>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<MessageAutoDeleteTimerChanged>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<MessageAutoDeleteTimerChanged>>): Job
onMessageCallbackQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onMessageCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (MessageCallbackQuery) -> Boolean? = null, markerFactory: MarkerFactory<in MessageCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, MessageCallbackQuery>): Job
onMessageDataCallbackQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onMessageDataCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (MessageDataCallbackQuery) -> Boolean? = null, markerFactory: MarkerFactory<in MessageDataCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, MessageDataCallbackQuery>): Job
onMessageGameShortNameCallbackQuery
Link copied to clipboard
common
suspend fun BehaviourContext.onMessageGameShortNameCallbackQuery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (MessageGameShortNameCallbackQuery) -> Boolean? = null, markerFactory: MarkerFactory<in MessageGameShortNameCallbackQuery, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, MessageGameShortNameCallbackQuery>): Job
onMyChatMemberUpdated
Link copied to clipboard
common
suspend fun BehaviourContext.onMyChatMemberUpdated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatMemberUpdated) -> Boolean? = null, markerFactory: MarkerFactory<ChatMemberUpdated, Any> = ByChatChatMemberUpdatedMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatMemberUpdated>): Job
onNewChatMembers
Link copied to clipboard
common
suspend fun BehaviourContext.onNewChatMembers(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<NewChatMembers>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<NewChatMembers>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<NewChatMembers>>): Job
onNewChatPhoto
Link copied to clipboard
common
suspend fun BehaviourContext.onNewChatPhoto(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<NewChatPhoto>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<NewChatPhoto>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<NewChatPhoto>>): Job
onNewChatTitle
Link copied to clipboard
common
suspend fun BehaviourContext.onNewChatTitle(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<NewChatTitle>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<NewChatTitle>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<NewChatTitle>>): Job
onPassportMessage
Link copied to clipboard
common
suspend fun BehaviourContext.onPassportMessage(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (PassportMessage) -> Boolean? = null, markerFactory: MarkerFactory<in PassportMessage, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, PassportMessage>): Job
onPhoto
Link copied to clipboard
common
suspend fun BehaviourContext.onPhoto(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<PhotoContent>? = null, markerFactory: MarkerFactory<in CommonMessage<PhotoContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<PhotoContent>>): Job
onPhotoGallery
Link copied to clipboard
common
suspend fun BehaviourContext.onPhotoGallery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<PhotoContent>>) -> Boolean? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<PhotoContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<PhotoContent>>>): Job
onPinnedMessage
Link copied to clipboard
common
suspend fun BehaviourContext.onPinnedMessage(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<PinnedMessage>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<PinnedMessage>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<PinnedMessage>>): Job
onPlaylist
Link copied to clipboard
common
suspend fun BehaviourContext.onPlaylist(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<AudioMediaGroupContent>>) -> Boolean? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<AudioMediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<AudioMediaGroupContent>>>): Job
onPoll
Link copied to clipboard
common
suspend fun BehaviourContext.onPoll(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<PollContent>? = null, markerFactory: MarkerFactory<in CommonMessage<PollContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<PollContent>>): Job
onProximityAlertTriggered
Link copied to clipboard
common
suspend fun BehaviourContext.onProximityAlertTriggered(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<ProximityAlertTriggered>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<ProximityAlertTriggered>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<ProximityAlertTriggered>>): Job
onSticker
Link copied to clipboard
common
suspend fun BehaviourContext.onSticker(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<StickerContent>? = null, markerFactory: MarkerFactory<in CommonMessage<StickerContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<StickerContent>>): Job
onSupergroupChatCreated
Link copied to clipboard
common
suspend fun BehaviourContext.onSupergroupChatCreated(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<SupergroupChatCreated>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<SupergroupChatCreated>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<SupergroupChatCreated>>): Job
onSupergroupEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onSupergroupEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<SupergroupEvent>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<SupergroupEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<SupergroupEvent>>): Job
onText
Link copied to clipboard
common
suspend fun BehaviourContext.onText(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<TextContent>? = null, markerFactory: MarkerFactory<in CommonMessage<TextContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<TextContent>>): Job
onUnknownCallbackQueryType
Link copied to clipboard
common
suspend fun BehaviourContext.onUnknownCallbackQueryType(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (UnknownCallbackQueryType) -> Boolean? = null, markerFactory: MarkerFactory<in UnknownCallbackQueryType, Any> = ByUserCallbackQueryMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, UnknownCallbackQueryType>): Job
onVenue
Link copied to clipboard
common
suspend fun BehaviourContext.onVenue(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<VenueContent>? = null, markerFactory: MarkerFactory<in CommonMessage<VenueContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VenueContent>>): Job
onVideo
Link copied to clipboard
common
suspend fun BehaviourContext.onVideo(includeFilterByChatInBehaviourSubContext: Boolean = true, includeMediaGroups: Boolean = false, additionalFilter: CommonMessageFilter<VideoContent>? = null, markerFactory: MarkerFactory<in CommonMessage<VideoContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VideoContent>>): Job
onVideoGallery
Link copied to clipboard
common
suspend fun BehaviourContext.onVideoGallery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<VideoContent>>) -> Boolean? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<VideoContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<VideoContent>>>): Job
onVideoNote
Link copied to clipboard
common
suspend fun BehaviourContext.onVideoNote(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<VideoNoteContent>? = null, markerFactory: MarkerFactory<in CommonMessage<VideoNoteContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VideoNoteContent>>): Job
onVisualGallery
Link copied to clipboard
common
suspend fun BehaviourContext.onVisualGallery(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<VisualMediaGroupContent>>) -> Boolean? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<VisualMediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<VisualMediaGroupContent>>>): Job
onVisualMediaGroup
Link copied to clipboard
common
suspend fun BehaviourContext.onVisualMediaGroup(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (List<MediaGroupMessage<VisualMediaGroupContent>>) -> Boolean? = null, markerFactory: MarkerFactory<in List<MediaGroupMessage<VisualMediaGroupContent>>, Any> = ByChatMediaGroupMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, List<MediaGroupMessage<VisualMediaGroupContent>>>): Job
onVoice
Link copied to clipboard
common
suspend fun BehaviourContext.onVoice(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: CommonMessageFilter<VoiceContent>? = null, markerFactory: MarkerFactory<in CommonMessage<VoiceContent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, CommonMessage<VoiceContent>>): Job
onVoiceChatEndedEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onVoiceChatEndedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<VoiceChatEnded>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<VoiceChatEnded>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatEnded>>): Job
onVoiceChatEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onVoiceChatEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<VoiceChatEvent>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<VoiceChatEvent>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatEvent>>): Job
onVoiceChatParticipantsInvitedEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onVoiceChatParticipantsInvitedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<VoiceChatParticipantsInvited>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<VoiceChatParticipantsInvited>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatParticipantsInvited>>): Job
onVoiceChatStartedEvent
Link copied to clipboard
common
suspend fun BehaviourContext.onVoiceChatStartedEvent(includeFilterByChatInBehaviourSubContext: Boolean = true, additionalFilter: suspend (ChatEventMessage<VoiceChatStarted>) -> Boolean? = null, markerFactory: MarkerFactory<in ChatEventMessage<VoiceChatStarted>, Any> = ByChatMessageMarkerFactory, scenarioReceiver: BehaviourContextAndTypeReceiver<Unit, ChatEventMessage<VoiceChatStarted>>): Job