Total Complexity | 2 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
17 | class InlineQueryResultCachedAudioType extends InlineQueryResultType implements HasParseModeVariableInterface |
||
18 | { |
||
19 | use CaptionEntitiesFieldTrait; |
||
20 | use FillFromArrayTrait; |
||
21 | |||
22 | /** |
||
23 | * A valid file identifier for the audio file. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | public $audioFileId; |
||
28 | |||
29 | /** |
||
30 | * Optional. Caption, 0-1024 characters. |
||
31 | * |
||
32 | * @var string|null |
||
33 | */ |
||
34 | public $caption; |
||
35 | |||
36 | /** |
||
37 | * Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, |
||
38 | * fixed-width text or inline URLs in the media caption. |
||
39 | * |
||
40 | * @var string|null |
||
41 | */ |
||
42 | public $parseMode; |
||
43 | |||
44 | /** |
||
45 | * Optional. Content of the message to be sent instead of the audio. |
||
46 | * |
||
47 | * @var InputMessageContentType|null |
||
48 | */ |
||
49 | public $inputMessageContent; |
||
50 | |||
51 | /** |
||
52 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
53 | */ |
||
54 | public static function create(string $id, string $audioFileId, array $data = null): InlineQueryResultCachedAudioType |
||
67 |