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

또한 보기: https://core.telegram.org/bots/api#inlinequeryresultaudio 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

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
__construct ( string $id, string $audioUrl, string $title, string | null $performer = null, integer | null $audioDuration = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null ) Audio constructor.
getAudioDuration ( ) : integer
getAudioUrl ( ) : string
getPerformer ( ) : string
setAudioDuration ( integer $audioDuration )
setAudioUrl ( string $audioUrl )
setPerformer ( string $performer )

메소드 상세

__construct() 공개 메소드

Audio constructor.
public __construct ( string $id, string $audioUrl, string $title, string | null $performer = null, integer | null $audioDuration = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null )
$id string
$audioUrl string
$title string
$performer string | null
$audioDuration integer | null
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent | null
$inlineKeyboardMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null

getAudioDuration() 공개 메소드

public getAudioDuration ( ) : integer
리턴 integer

getAudioUrl() 공개 메소드

public getAudioUrl ( ) : string
리턴 string

getPerformer() 공개 메소드

public getPerformer ( ) : string
리턴 string

setAudioDuration() 공개 메소드

public setAudioDuration ( integer $audioDuration )
$audioDuration integer

setAudioUrl() 공개 메소드

public setAudioUrl ( string $audioUrl )
$audioUrl string

setPerformer() 공개 메소드

public setPerformer ( string $performer )
$performer string

프로퍼티 상세

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

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

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

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

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

protected static array $map
리턴 array

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

Optional. Performer
protected string $performer
리턴 string

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

protected static array $requiredParams
리턴 array

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

protected string $type
리턴 string