SendDocumentData

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.

See also

Parameters

disableContentTypeDetection

Disables automatic server-side content type detection for document

Functions

Link copied to clipboard
open override fun method(): String

Properties

Link copied to clipboard
open override val allowSendingWithoutReply: Boolean? = null
Link copied to clipboard
open override val chatId: ChatIdentifier
Link copied to clipboard
Link copied to clipboard
open override val disableNotification: Boolean = false
Link copied to clipboard
val document: String? = null
Link copied to clipboard
Link copied to clipboard
open override val parseMode: ParseMode? = null
Link copied to clipboard
open override val protectContent: Boolean = false
Link copied to clipboard
open override val replyMarkup: KeyboardMarkup? = null
Link copied to clipboard
open override val replyToMessageId: MessageId? = null
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<ContentMessage<DocumentContent>>
Link copied to clipboard
open override val text: String? = null
Link copied to clipboard
open override val textSources: TextSourcesList?

Full list of TextSources

Link copied to clipboard
open override val threadId: MessageThreadId? = null
Link copied to clipboard
open override val thumb: String? = null

Extensions

Link copied to clipboard
fun TextedWithTextSources.parseCommandsWithParams(argsSeparator: Regex = defaultArgsSeparator): Map<String, Array<String>>

Parse commands and their args. Logic will find command, get all subsequent data as args until new command