Completed
Push — master ( a1f3e5...eb9bcc )
by Irfaq
02:42
created

InlineQueryResultMpeg4Gif::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Telegram\Bot\Objects\InlineQuery;
4
5
/**
6
 * Class InlineQueryResultMpeg4Gif
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                         => '',
11
 *   'mpeg4_url'                  => '',
12
 *   'mpeg4_width'                => '',
13
 *   'mpeg4_height'               => '',
14
 *   'thumb_url'                  => '',
15
 *   'title'                      => '',
16
 *   'caption'                    => '',
17
 *   'reply_markup'               => '',
18
 *   'input_message_content'      => '',
19
 * ];
20
 * </code>
21
 *
22
 * @link https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif
23
 *
24
 * @method $this setId($string)                  Unique identifier for this result, 1-64 bytes
25
 * @method $this setMpeg4Url($string)            A valid URL for the MP4 file. File size must not exceed 1MB
26
 * @method $this setMpeg4Width($int)             Optional. Video width
27
 * @method $this setMpeg4Height($int)            Optional. Video height
28
 * @method $this setThumbUrl($string)            URL of the static thumbnail (jpeg or gif) for the result
29
 * @method $this setTitle($string)               Optional. Title for the result
30
 * @method $this setCaption($string)             Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
31
 * @method $this setReplyMarkup($object)         Optional. Inline keyboard attached to the message
32
 * @method $this setInputMessageContent($object) Optional. Content of the message to be sent instead of the photo
33
 */
34
35
class InlineQueryResultMpeg4Gif extends InlineBaseObject
36
{
37
    public function __construct($params = [])
38
    {
39
        parent::__construct($params);
40
        $this->put('type', 'mpeg4_gif');
41
    }
42
}
43