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.

Parameters

disableContentTypeDetection

Disables automatic server-side content type detection for document

See also

Properties

Link copied to clipboard
open override val allowSendingWithoutReply: Boolean?
Link copied to clipboard
@SerialName(value = "chat_id")
open override val chatId: ChatIdentifier
Link copied to clipboard
@SerialName(value = "disable_content_type_detection")
val disableContentTypeDetection: Boolean? = null
Link copied to clipboard
@SerialName(value = "disable_notification")
open override val disableNotification: Boolean = false
Link copied to clipboard
@SerialName(value = "document")
val document: InputFile
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "parse_mode")
open override val parseMode: ParseMode? = null
Link copied to clipboard
@SerialName(value = "protect_content")
open override val protectContent: Boolean = false
Link copied to clipboard
@SerialName(value = "reply_markup")
open override val replyMarkup: KeyboardMarkup? = null
Link copied to clipboard
@SerialName(value = "reply_parameters")
open override val replyParameters: ReplyParameters? = null
Link copied to clipboard
open override val replyToMessageId: MessageId?
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<ContentMessage<DocumentContent>>
Link copied to clipboard
@SerialName(value = "caption")
open override val text: String? = null
Link copied to clipboard
open override val textSources: TextSourcesList?

Full list of TextSources

Link copied to clipboard
@SerialName(value = "message_thread_id")
open override val threadId: MessageThreadId?
Link copied to clipboard
@SerialName(value = "thumbnail")
open override val thumbnail: String? = null

Functions

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