Completed
Push — master ( 7d37a2...fea370 )
by Nikolay
06:21
created

InputMediaAudioType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 41
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;
6
7
/**
8
 * Class InputMediaAudioType.
9
 *
10
 * @see https://core.telegram.org/bots/api#inputmediaaudio
11
 */
12
class InputMediaAudioType extends InputMediaType
13
{
14
    /**
15
     * Optional. Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size.
16
     * A thumbnail‘s width and height should not exceed 90.
17
     * Ignored if the file is not uploaded using multipart/form-data.
18
     * Thumbnails can’t be reused and can be only uploaded as a new file,
19
     * so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using
20
     * multipart/form-data under <file_attach_name>.
21
     *
22
     * @var InputFileType|string|null
23
     */
24
    public $thumb;
25
26
    /**
27
     * Optional. Duration of the audio in seconds.
28
     *
29
     * @var int|null
30
     */
31
    public $duration;
32
33
    /**
34
     * Optional. Performer of the audio.
35
     *
36
     * @var string|null
37
     */
38
    public $performer;
39
40
    /**
41
     * Optional. Title of the audio.
42
     *
43
     * @var string|null
44
     */
45
    public $title;
46
47
    /**
48
     * InputMediaAudioType constructor.
49
     */
50
    public function __construct()
51
    {
52
        $this->type = self::TYPE_AUDIO;
53
    }
54
}
55