Completed
Push — master ( 588078...30ae0c )
by Nikolay
04:51 queued 02:15
created

InputMediaDocumentType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 20
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Greenplugin\TelegramBot\Type\InputMedia;
6
7
use Greenplugin\TelegramBot\Type\InputFileType;
8
9
/**
10
 * Class InputMediaDocumentType.
11
 *
12
 * @see https://core.telegram.org/bots/api#inputmediadocument
13
 */
14
class InputMediaDocumentType extends InputMediaType
15
{
16
    /**
17
     * Optional. Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size.
18
     * A thumbnail‘s width and height should not exceed 90.
19
     * Ignored if the file is not uploaded using multipart/form-data.
20
     * Thumbnails can’t be reused and can be only uploaded as a new file,
21
     * so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using
22
     * multipart/form-data under <file_attach_name>.
23
     *
24
     * @var InputFileType|string|null
25
     */
26
    public $thumb;
27
28
    /**
29
     * InputMediaDocumentType constructor.
30
     */
31
    public function __construct()
32
    {
33
        $this->type = self::TYPE_DOCUMENT;
34
    }
35
}
36