1 | <?php |
||
14 | class InputMedia extends BaseType implements CollectionItemInterface |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | static protected $requiredParams = ['type', 'media']; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | static protected $map = [ |
||
29 | 'type' => true, |
||
30 | 'media' => true, |
||
31 | 'caption' => true, |
||
32 | 'parse_mode' => true, |
||
33 | ]; |
||
34 | |||
35 | /** |
||
36 | * Type of the result. |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $type; |
||
41 | |||
42 | /** |
||
43 | * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), |
||
44 | * pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" |
||
45 | * to upload a new one using multipart/form-data under <file_attach_name> name. |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $media; |
||
50 | |||
51 | /** |
||
52 | * Optional. Caption of the photo to be sent, 0-200 characters. |
||
53 | * |
||
54 | * @var string |
||
55 | */ |
||
56 | protected $caption; |
||
57 | |||
58 | /** |
||
59 | * Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, |
||
60 | * fixed-width text or inline URLs in the media caption. |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $parseMode; |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getType() |
||
73 | |||
74 | /** |
||
75 | * @param string $type |
||
76 | */ |
||
77 | public function setType($type) |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getMedia() |
||
89 | |||
90 | /** |
||
91 | * @param string $media |
||
92 | */ |
||
93 | public function setMedia($media) |
||
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | public function getCaption() |
||
105 | |||
106 | /** |
||
107 | * @param string $caption |
||
108 | */ |
||
109 | public function setCaption($caption) |
||
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getParseMode() |
||
121 | |||
122 | /** |
||
123 | * @param string $parseMode |
||
124 | */ |
||
125 | public function setParseMode($parseMode) |
||
129 | } |
||
130 |