Package dev.inmo.tgbotapi.extensions.utils.extensions

Functions

download
Link copied to clipboard
common
suspend fun PathedFile.download(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, client: HttpClient = HttpClient()): ByteArray
loadFile
Link copied to clipboard
common
suspend fun HttpClient.loadFile(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, pathedFile: PathedFile): ByteArray
suspend fun HttpClient.loadFile(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, filePath: String): ByteArray
parseCommandsWithParams
Link copied to clipboard
common
fun CaptionedInput.parseCommandsWithParams(argsSeparator: Regex = defaultArgsSeparator): MutableMap<String, Array<String>>
Parse commands and their args.
fun TextedInput.parseCommandsWithParams(argsSeparator: Regex = defaultArgsSeparator): MutableMap<String, Array<String>>
Parse commands and their args.
fun TextedOutput.parseCommandsWithParams(argsSeparator: Regex = defaultArgsSeparator): Map<String, Array<String>>
Parse commands and their args.
fun ContentMessage<TextContent>.parseCommandsWithParams(argsSeparator: Regex = defaultArgsSeparator): MutableMap<String, Array<String>>
Parse commands and their args.
fun List<TextSource>.parseCommandsWithParams(argsSeparator: Regex = defaultArgsSeparator): MutableMap<String, Array<String>>
Parse commands and their args.
sourceChat
Link copied to clipboard
common
fun Update.sourceChat(): Chat?

Properties

allSentMediaGroupsFlow
Link copied to clipboard
common
val FlowsUpdatesFilter.allSentMediaGroupsFlow: Flow<SentMediaGroupUpdate>
allSentMessagesFlow
Link copied to clipboard
common
val FlowsUpdatesFilter.allSentMessagesFlow: Flow<BaseSentMessageUpdate>
defaultArgsSeparator
Link copied to clipboard
common
val defaultArgsSeparator: Regex