Property | Type | Description | |
---|---|---|---|
$map | array | ||
$requiredParams | array | ||
$type | string | ||
$voiceDuration | integer | Optional. Audio duration in seconds | |
$voiceUrl | string | A valid URL for the audio file |
Method | Description | |
---|---|---|
__construct ( string $id, string $voiceUrl, string $title, integer | null $voiceDuration = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null ) | Voice constructor | |
getVoiceDuration ( ) : integer | ||
getVoiceUrl ( ) : string | ||
setVoiceDuration ( integer $voiceDuration ) | ||
setVoiceUrl ( string $voiceUrl ) |
public __construct ( string $id, string $voiceUrl, string $title, integer | null $voiceDuration = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null ) | ||
$id | string | |
$voiceUrl | string | |
$title | string | |
$voiceDuration | integer | null | |
$inlineKeyboardMarkup | TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null | |
$inputMessageContent | TelegramBot\Api\Types\Inline\InputMessageContent | null |
public setVoiceDuration ( integer $voiceDuration ) | ||
$voiceDuration | integer |
protected int $voiceDuration | ||
return | integer |
protected string $voiceUrl | ||
return | string |