Package-level declarations

Functions

Link copied to clipboard

Will map incoming BaseSentMessageUpdates to CommonMessage from BaseSentMessageUpdate.data

Link copied to clipboard

Will map incoming BaseSentMessageUpdates to ContentMessage from BaseSentMessageUpdate.data

Link copied to clipboard

Will map incoming BaseSentMessageUpdates to UnknownMessageType from BaseSentMessageUpdate.data

Link copied to clipboard
inline fun <T : BaseSentMessageUpdate> Flow<T>.chatEvents(): Flow<ChatEventMessage<*>>
Link copied to clipboard

Flow.filter incoming BaseMessageUpdates by their IdChatIdentifier using Chat.id of chat

Link copied to clipboard
Link copied to clipboard

Convert incoming dev.inmo.tgbotapi.types.message.abstracts.ContentMessage.content of messages with fullEntitiesList and check that incoming message contains BotCommandTextSource. Besides, it is checking that BotCommandTextSource.command with incoming commandRegex

Link copied to clipboard

Convert incoming dev.inmo.tgbotapi.types.message.abstracts.ContentMessage.content of messages with fullEntitiesList and check that incoming message contains first TextSource as BotCommandTextSource. Besides, it is checking that BotCommandTextSource.command with incoming commandRegex and for other TextSource objects used next rules: all incoming text sources will be passed as is, RegularTextSource will be split by " " for several RegularTextSource which will contains not empty args without spaces.

Link copied to clipboard

Convert incoming dev.inmo.tgbotapi.types.message.abstracts.ContentMessage.content of messages with fullEntitiesList and check that incoming message contains ONLY ONE TextSource and that is BotCommandTextSource. Besides, it is checking that BotCommandTextSource.command with incoming commandRegex

Link copied to clipboard
inline fun flowsUpdatesFilter(internalChannelsSizes: Int = 100, block: FlowsUpdatesFilter.() -> Unit): FlowsUpdatesFilter

Non-suspendable function for easy-to-use creating of FlowsUpdatesFilter and applying the block to it

Link copied to clipboard

A predicate to test that message has been sent in the forum. Use it as the initialFilter parameter in behaviour builder triggers. E.g.

Link copied to clipboard

A predicate to test whether a message contains any commands in its body. Use it as the initialFilter parameter in behaviour builder triggers. E.g.

Link copied to clipboard

A predicate to test whether a message contains any commands in its body. Use it as the initialFilter parameter in behaviour builder triggers. E.g.

Link copied to clipboard

A predicate to test that message has not been sent in the forum. Use it as the initialFilter parameter in behaviour builder triggers. E.g.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun JsonElement.toTelegramUpdate(): Update
fun Json.toTelegramUpdate(source: String): Update
fun Json.toTelegramUpdate(source: JsonElement): Update