Class SendDocumentMethod.
| see | |
|---|---|
| package | Default | 
create(integer|string $chatId, \TgBotApi\BotApiBase\Type\InputFileType|string $document, array $data = null) 
integerstring
\TgBotApi\BotApiBase\Type\InputFileTypestring
\TgBotApi\BotApiBase\Exception\BadArgumentException | 
|---|
fill(array $data, array $forbidden = array()) 
array
array
\TgBotApi\BotApiBase\Exception\BadArgumentException | 
|---|
$allowSendingWithoutReply : boolean | null
$caption : string | null
$disableContentTypeDetection : boolean | null
$disableNotification : boolean | null
$document : \TgBotApi\BotApiBase\Type\InputFileType | string
$parseMode : string | null
$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null
$replyToMessageId : integer | null
$thumb : \TgBotApi\BotApiBase\Type\InputFileType | string | null
A thumbnail‘s width and height should not exceed 90.
Ignored if the file is not uploaded using multipart/form-data.
Thumbnails can’t be reused and can be only uploaded as a new file, so you can pass “attach://