| Total Complexity | 2 |
| Total Lines | 67 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class InlineQueryResultVoiceType extends InlineQueryResultType implements HasParseModeVariableInterface |
||
| 18 | { |
||
| 19 | use CaptionEntitiesFieldTrait; |
||
| 20 | use FillFromArrayTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * A valid URL for the voice recording. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | public $voiceUrl; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Recording title. |
||
| 31 | * |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | public $title; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Optional. Caption, 0-1024 characters. |
||
| 38 | * |
||
| 39 | * @var string|null |
||
| 40 | */ |
||
| 41 | public $caption; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, |
||
| 45 | * fixed-width text or inline URLs in the media caption. |
||
| 46 | * |
||
| 47 | * @var string|null |
||
| 48 | */ |
||
| 49 | public $parseMode; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Optional. Recording duration in seconds. |
||
| 53 | * |
||
| 54 | * @var int|null |
||
| 55 | */ |
||
| 56 | public $voiceDuration; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Optional. Content of the message to be sent instead of the voice recording. |
||
| 60 | * |
||
| 61 | * @var InputMessageContentType|null |
||
| 62 | */ |
||
| 63 | public $inputMessageContent; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
| 67 | */ |
||
| 68 | public static function create( |
||
| 86 |