PHP 클래스 TelegramBot\Api\Types\Inline\QueryResult\Voice

또한 보기: https://core.telegram.org/bots/api#inlinequeryresultvoice Represents a link to an mp3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use InputMessageContent to send a message with the specified content instead of the audio. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
상속: extends AbstractInlineQueryResult
파일 보기 프로젝트 열기: TelegramBot/Api

보호된 프로퍼티들

프로퍼티 타입 설명
$map array
$requiredParams array
$type string
$voiceDuration integer Optional. Audio duration in seconds
$voiceUrl string A valid URL for the audio file

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

Voice constructor
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

getVoiceDuration() 공개 메소드

public getVoiceDuration ( ) : integer
리턴 integer

getVoiceUrl() 공개 메소드

public getVoiceUrl ( ) : string
리턴 string

setVoiceDuration() 공개 메소드

public setVoiceDuration ( integer $voiceDuration )
$voiceDuration integer

setVoiceUrl() 공개 메소드

public setVoiceUrl ( string $voiceUrl )
$voiceUrl string

프로퍼티 상세

$map 보호되어 있는 정적으로 프로퍼티

protected static array $map
리턴 array

$requiredParams 보호되어 있는 정적으로 프로퍼티

protected static array $requiredParams
리턴 array

$type 보호되어 있는 프로퍼티

protected string $type
리턴 string

$voiceDuration 보호되어 있는 프로퍼티

Optional. Audio duration in seconds
protected int $voiceDuration
리턴 integer

$voiceUrl 보호되어 있는 프로퍼티

A valid URL for the audio file
protected string $voiceUrl
리턴 string