| Total Complexity | 2 |
| Total Lines | 75 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class InlineQueryResultAudioType extends InlineQueryResultType implements HasParseModeVariableInterface |
||
| 17 | { |
||
| 18 | use FillFromArrayTrait; |
||
| 19 | /** |
||
| 20 | * A valid URL for the audio file. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $audioUrl; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Title. |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | public $title; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Optional. Caption, 0-1024 characters. |
||
| 35 | * |
||
| 36 | * @var string|null |
||
| 37 | */ |
||
| 38 | public $caption; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, |
||
| 42 | * fixed-width text or inline URLs in the media caption. |
||
| 43 | * |
||
| 44 | * @var string|null |
||
| 45 | */ |
||
| 46 | public $parseMode; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Optional. Performer. |
||
| 50 | * |
||
| 51 | * @var string|null |
||
| 52 | */ |
||
| 53 | public $performer; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Optional. Audio duration in seconds. |
||
| 57 | * |
||
| 58 | * @var int|null |
||
| 59 | */ |
||
| 60 | public $audioDuration; |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Optional. Content of the message to be sent instead of the audio. |
||
| 64 | * |
||
| 65 | * @var InputMessageContentType|null |
||
| 66 | */ |
||
| 67 | public $inputMessageContent; |
||
| 68 | |||
| 69 | /** |
||
| 70 | * InlineQueryResultAudio constructor. |
||
| 71 | * |
||
| 72 | * @param string $id |
||
| 73 | * @param string $audioUrl |
||
| 74 | * @param string $title |
||
| 75 | * @param array|null $data |
||
| 76 | * |
||
| 77 | * @throws \Greenplugin\TelegramBot\Exception\BadArgumentException |
||
| 78 | */ |
||
| 79 | public function __construct( |
||
| 94 |