Menu

## AudioMessageBuilder
in package
implements MessageBuilder

AudioMessageBuilder.php : 31

A builder class for audio message.

### Interfaces, Classes and Traits

MessageBuilder
  The interface that has a responsibility to build message.

### Table of Contents

$duration : int
$message : array<string|int, mixed>
$originalContentUrl : string
$quickReply : QuickReplyBuilder|null
$sender : SenderBuilder|null
__construct() : mixed
  AudioMessageBuilder constructor.
buildMessage() : array<string|int, mixed>
  Build audio message structure.

### Properties

#### $duration

AudioMessageBuilder.php : 37
`private int $duration`

#### $message

AudioMessageBuilder.php : 40
`private array<string|int, mixed> $message = []`

#### $originalContentUrl

AudioMessageBuilder.php : 34
`private string $originalContentUrl`

#### $quickReply

AudioMessageBuilder.php : 43
`private QuickReplyBuilder|null $quickReply`

#### $sender

AudioMessageBuilder.php : 46
`private SenderBuilder|null $sender`

### Methods

#### __construct()

AudioMessageBuilder.php : 56

AudioMessageBuilder constructor.

`public __construct(string $originalContentUrl, int $duration[, QuickReplyBuilder|null $quickReply = null ][, SenderBuilder|null $sender = null ]) : mixed`

##### Parameters

$originalContentUrl : string

  URL that serves audio file.

$duration : int

  Duration of audio file (milli seconds)

$quickReply : QuickReplyBuilder|null = null
$sender : SenderBuilder|null = null

##### Return values

mixed —

#### buildMessage()

AudioMessageBuilder.php : 73

Build audio message structure.

`public buildMessage() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

## Search results