Package-level declarations

Functions

Link copied to clipboard
fun <T> Flow<T>.asCommonMessagesFlow(): <Error class: unknown class>

Will map incoming BaseSentMessageUpdates to CommonMessage from BaseSentMessageUpdate.data

Link copied to clipboard
fun <T> Flow<T>.asContentMessagesFlow(): <Error class: unknown class>

Will map incoming BaseSentMessageUpdates to ContentMessage from BaseSentMessageUpdate.data

Link copied to clipboard
fun Flow<<Error class: unknown class>>.asDataCallbackQueryFlow(): <Error class: unknown class>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.asGameShortNameCallbackQueryFlow(): <Error class: unknown class>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.asUnknownCallbackQueryFlow(): <Error class: unknown class>
Link copied to clipboard
fun <T> Flow<T>.asUnknownMessagesFlow(): <Error class: unknown class>

Will map incoming BaseSentMessageUpdates to UnknownMessageType from BaseSentMessageUpdate.data

Link copied to clipboard
inline fun <T> Flow<T>.chatEvents(): <Error class: unknown class>
Link copied to clipboard
fun List<<Error class: unknown class>>.convertWithMediaGroupUpdates(): List<<Error class: unknown class>>

Will convert incoming list of Updates to list with Updates, which include dev.inmo.tgbotapi.types.message.abstracts.ContentMessages with dev.inmo.tgbotapi.types.message.content.MediaGroupContent

Link copied to clipboard
fun <T> Flow<T>.filterBaseMessageUpdatesByChat(chat: <Error class: unknown class>): Flow<T>

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

Link copied to clipboard
fun <T> Flow<T>.filterBaseMessageUpdatesByChatId(chatId: <Error class: unknown class>): Flow<T>

Flow.filter incoming BaseMessageUpdates by their IdChatIdentifier

Link copied to clipboard
fun <T> Flow<T>.filterCommandsInsideTextMessages(commandRegex: <Error class: unknown class>): <Error class: unknown class>

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 Regex.matches with incoming commandRegex

Link copied to clipboard
fun <T> Flow<T>.filterCommandsWithArgs(commandRegex: <Error class: unknown class>): Flow<<Error class: unknown class><<Error class: unknown class><<Error class: unknown class>>, <Error class: unknown class>>>

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 Regex.matches 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
fun <T> Flow<T>.filterExactCommands(commandRegex: <Error class: unknown class>): <Error class: unknown class>

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 Regex.matches with incoming commandRegex

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

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

Link copied to clipboard
fun <Error class: unknown class>.forumMessage(): Boolean

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
fun <Error class: unknown class><out <Error class: unknown class>>.hasCommands(): Boolean

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
fun <Error class: unknown class><out <Error class: unknown class>>.hasNoCommands(): Boolean

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
fun List<<Error class: unknown class>>.lastUpdateIdentifier(): <Error class: unknown class>?
Link copied to clipboard
fun <Error class: unknown class>.notForumMessage(): Boolean

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
fun Flow<<Error class: unknown class>>.onlyBaseChosenInlineResults(): Flow<<Error class: unknown class>>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.onlyBaseChosenInlineResultsWithUpdates(): Flow<<Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.onlyBaseInlineQueries(): Flow<<Error class: unknown class>>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.onlyBaseInlineQueriesWithUpdates(): Flow<<Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.onlyBaseMessageUpdates(): Flow<<Error class: unknown class>>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.onlyEditMessageUpdates(): Flow<<Error class: unknown class>>

Converts flow to Flow of BaseSentMessageUpdate

Link copied to clipboard
fun Flow<<Error class: unknown class>>.onlyLocationChosenInlineResults(): Flow<<Error class: unknown class>>
fun Flow<<Error class: unknown class>>.onlyLocationChosenInlineResultsWithUpdates(): Flow<<Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.onlyLocationInlineQueries(): Flow<<Error class: unknown class>>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.onlyLocationInlineQueriesWithUpdates(): Flow<<Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>>
Link copied to clipboard
fun Flow<<Error class: unknown class>>.onlySentMessageUpdates(): Flow<<Error class: unknown class>>

Converts flow to Flow of BaseSentMessageUpdate

Link copied to clipboard
inline fun <T> Flow<T>.passportMessages(): <Error class: unknown class>
Link copied to clipboard
fun <Error class: unknown class>.toTelegramUpdate(): <Error class: unknown class>
fun String.toTelegramUpdate(): <Error class: unknown class>
fun <Error class: unknown class>.toTelegramUpdate(source: <Error class: unknown class>): <Error class: unknown class>
fun <Error class: unknown class>.toTelegramUpdate(source: String): <Error class: unknown class>