Send Document Data
@Serializable
Use this method to send general files. On success, the sent ContentMessage with DocumentContent is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
Parameters
disable Content Type Detection
Disables automatic server-side content type detection for document
See also
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "business_connection_id" )
Link copied to clipboard
Link copied to clipboard
@EncodeDefault
@SerialName(value = "direct_messages_topic_id" )
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "suggested_post_parameters" )
Link copied to clipboard
Full list of TextSources
Link copied to clipboard
Functions
Link copied to clipboard
fun TextedWithTextSources.parseCommandsWithArgs(argsSeparator: Regex = TelegramBotCommandsDefaults.defaultArgsSeparatorRegex): Map<String, Array<String>>
Parse commands and their args. Logic will find command, get all subsequent data as args until new command
Link copied to clipboard
fun TextedWithTextSources.parseCommandsWithArgsSources(): Map<BotCommandTextSource, Array<TextSource>>
Parse text sources to find commands with their arguments. This method will skip all the text sources before first command and all following text sources until the next command will be guessed as an args of last found command
Link copied to clipboard
fun TextedWithTextSources.parseCommandsWithNamedArgs(argsSeparator: String, nameArgSeparator: Regex = TelegramBotCommandsDefaults.defaultNamesArgsSeparatorRegex): Map<String, List<Pair<String, String>>>
fun TextedWithTextSources.parseCommandsWithNamedArgs(argsSeparator: Regex = TelegramBotCommandsDefaults.defaultArgsSeparatorRegex, nameArgSeparator: Regex = TelegramBotCommandsDefaults.defaultNamesArgsSeparatorRegex): Map<String, List<Pair<String, String>>>
Uses parseCommandsWithArgs to create base argsSeparator split args for commands and map their as k-v pairs. Sample: