Package dev. inmo. tgbotapi. extensions. utils. updates
Functions
asCommonMessagesFlow
Link copied to clipboard
fun <T : BaseSentMessageUpdate> Flow<T>.asCommonMessagesFlow(): Flow<CommonMessage<*>>
Content copied to clipboard
asContentMessagesFlow
Link copied to clipboard
fun <T : BaseSentMessageUpdate> Flow<T>.asContentMessagesFlow(): Flow<ContentMessage<*>>
Content copied to clipboard
asDataCallbackQueryFlow
Link copied to clipboard
fun Flow<CallbackQueryUpdate>.asDataCallbackQueryFlow(): Flow<DataCallbackQuery>
Content copied to clipboard
asGameShortNameCallbackQueryFlow
Link copied to clipboard
fun Flow<CallbackQueryUpdate>.asGameShortNameCallbackQueryFlow(): Flow<GameShortNameCallbackQuery>
Content copied to clipboard
asUnknownCallbackQueryFlow
Link copied to clipboard
fun Flow<CallbackQueryUpdate>.asUnknownCallbackQueryFlow(): Flow<UnknownCallbackQueryType>
Content copied to clipboard
asUnknownMessagesFlow
Link copied to clipboard
fun <T : BaseSentMessageUpdate> Flow<T>.asUnknownMessagesFlow(): Flow<UnknownMessageType>
Content copied to clipboard
chatEvents
Link copied to clipboard
inline fun <T : BaseSentMessageUpdate> Flow<T>.chatEvents(): Flow<ChatEventMessage<*>>
Content copied to clipboard
convertWithMediaGroupUpdates
Link copied to clipboard
filterBaseMessageUpdatesByChat
Link copied to clipboard
fun <T : BaseMessageUpdate> Flow<T>.filterBaseMessageUpdatesByChat(chat: Chat): Flow<T>
Content copied to clipboard
filterBaseMessageUpdatesByChatId
Link copied to clipboard
fun <T : BaseMessageUpdate> Flow<T>.filterBaseMessageUpdatesByChatId(chatId: ChatId): Flow<T>
Content copied to clipboard
filterCommandsInsideTextMessages
Link copied to clipboard
fun <T : BaseSentMessageUpdate> Flow<T>.filterCommandsInsideTextMessages(commandRegex: Regex): Flow<ContentMessage<TextContent>>
Content copied to clipboard
Convert incoming dev.inmo.tgbotapi.types.message.abstracts.ContentMessage.content of messages with fullEntitiesList and check that incoming message contains BotCommandTextSource.
filterCommandsWithArgs
Link copied to clipboard
fun <T : BaseSentMessageUpdate> Flow<T>.filterCommandsWithArgs(commandRegex: Regex): Flow<Pair<ContentMessage<TextContent>, TextSourcesList>>
Content 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.
filterExactCommands
Link copied to clipboard
fun <T : BaseSentMessageUpdate> Flow<T>.filterExactCommands(commandRegex: Regex): Flow<ContentMessage<TextContent>>
Content 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.
filterSentMediaGroupUpdatesByChat
Link copied to clipboard
fun <T : SentMediaGroupUpdate> Flow<T>.filterSentMediaGroupUpdatesByChat(chat: Chat): Flow<T>
Content copied to clipboard
filterSentMediaGroupUpdatesByChatId
Link copied to clipboard
fun <T : SentMediaGroupUpdate> Flow<T>.filterSentMediaGroupUpdatesByChatId(chatId: ChatId): Flow<T>
Content copied to clipboard
flowsUpdatesFilter
Link copied to clipboard
inline fun flowsUpdatesFilter(internalChannelsSizes: Int = 100, block: FlowsUpdatesFilter.() -> Unit): FlowsUpdatesFilter
Content copied to clipboard
Non-suspendable function for easy-to-use creating of FlowsUpdatesFilter and applying the block to it
lastUpdateIdentifier
Link copied to clipboard
onlyBaseChosenInlineResults
Link copied to clipboard
fun Flow<ChosenInlineResultUpdate>.onlyBaseChosenInlineResults(): Flow<BaseChosenInlineResult>
Content copied to clipboard
onlyBaseChosenInlineResultsWithUpdates
Link copied to clipboard
fun Flow<ChosenInlineResultUpdate>.onlyBaseChosenInlineResultsWithUpdates(): Flow<Pair<UpdateIdentifier, BaseChosenInlineResult>>
Content copied to clipboard
onlyBaseInlineQueries
Link copied to clipboard
fun Flow<InlineQueryUpdate>.onlyBaseInlineQueries(): Flow<BaseInlineQuery>
Content copied to clipboard
onlyBaseInlineQueriesWithUpdates
Link copied to clipboard
fun Flow<InlineQueryUpdate>.onlyBaseInlineQueriesWithUpdates(): Flow<Pair<UpdateIdentifier, BaseInlineQuery>>
Content copied to clipboard
onlyBaseMessageUpdates
Link copied to clipboard
onlyEditMediaGroupUpdates
Link copied to clipboard
fun Flow<MediaGroupUpdate>.onlyEditMediaGroupUpdates(): Flow<EditMediaGroupUpdate>
Content copied to clipboard
onlyEditMessageUpdates
Link copied to clipboard
fun Flow<BaseMessageUpdate>.onlyEditMessageUpdates(): Flow<BaseEditMessageUpdate>
Content copied to clipboard
onlyLocationChosenInlineResults
Link copied to clipboard
fun Flow<ChosenInlineResultUpdate>.onlyLocationChosenInlineResults(): Flow<LocationChosenInlineResult>
Content copied to clipboard
onlyLocationChosenInlineResultsWithUpdates
Link copied to clipboard
fun Flow<ChosenInlineResultUpdate>.onlyLocationChosenInlineResultsWithUpdates(): Flow<Pair<UpdateIdentifier, LocationChosenInlineResult>>
Content copied to clipboard
onlyLocationInlineQueries
Link copied to clipboard
fun Flow<InlineQueryUpdate>.onlyLocationInlineQueries(): Flow<LocationInlineQuery>
Content copied to clipboard
onlyLocationInlineQueriesWithUpdates
Link copied to clipboard
fun Flow<InlineQueryUpdate>.onlyLocationInlineQueriesWithUpdates(): Flow<Pair<UpdateIdentifier, LocationInlineQuery>>
Content copied to clipboard
onlyMediaGroupsUpdates
Link copied to clipboard
fun Flow<BaseMessageUpdate>.onlyMediaGroupsUpdates(): Flow<MediaGroupUpdate>
Content copied to clipboard
onlySentMediaGroupUpdates
Link copied to clipboard
fun Flow<MediaGroupUpdate>.onlySentMediaGroupUpdates(): Flow<SentMediaGroupUpdate>
Content copied to clipboard
onlySentMessageUpdates
Link copied to clipboard
fun Flow<BaseMessageUpdate>.onlySentMessageUpdates(): Flow<BaseSentMessageUpdate>
Content copied to clipboard
passportMessages
Link copied to clipboard
inline fun <T : BaseSentMessageUpdate> Flow<T>.passportMessages(): Flow<PassportMessage>
Content copied to clipboard
toEditMediaGroupUpdate
Link copied to clipboard
toSentMediaGroupUpdate
Link copied to clipboard
fun List<BaseSentMessageUpdate>.toSentMediaGroupUpdate(): SentMediaGroupUpdate?
Content copied to clipboard
toTelegramUpdate
Link copied to clipboard