Page MenuHomePhabricator (Chris)

InlineQueryResultVoice.php
No OneTemporary

Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None

InlineQueryResultVoice.php

<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\TelegramBot\Entities\InlineQuery;
use Longman\TelegramBot\Entities\InlineKeyboard;
use Longman\TelegramBot\Entities\InputMessageContent\InputMessageContent;
/**
* Class InlineQueryResultVoice
*
* @link https://core.telegram.org/bots/api#inlinequeryresultvoice
*
* <code>
* $data = [
* 'id' => '',
* 'voice_url' => '',
* 'title' => '',
* 'caption' => '',
* 'voice_duration' => 123,
* 'reply_markup' => <InlineKeyboard>,
* 'input_message_content' => <InputMessageContent>,
* ];
* </code>
*
* @method string getType() Type of the result, must be voice
* @method string getId() Unique identifier for this result, 1-64 bytes
* @method string getVoiceUrl() A valid URL for the voice recording
* @method string getTitle() Recording title
* @method string getCaption() Optional. Caption, 0-200 characters
* @method int getVoiceDuration() Optional. Recording duration in seconds
* @method InlineKeyboard getReplyMarkup() Optional. Inline keyboard attached to the message
* @method InputMessageContent getInputMessageContent() Optional. Content of the message to be sent instead of the voice recording
*
* @method $this setId(string $id) Unique identifier for this result, 1-64 bytes
* @method $this setVoiceUrl(string $voice_url) A valid URL for the voice recording
* @method $this setTitle(string $title) Recording title
* @method $this setCaption(string $caption) Optional. Caption, 0-200 characters
* @method $this setVoiceDuration(int $voice_duration) Optional. Recording duration in seconds
* @method $this setReplyMarkup(InlineKeyboard $reply_markup) Optional. Inline keyboard attached to the message
* @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the voice recording
*/
class InlineQueryResultVoice extends InlineEntity implements InlineQueryResult
{
/**
* InlineQueryResultVoice constructor
*
* @param array $data
*/
public function __construct(array $data = [])
{
$data['type'] = 'voice';
parent::__construct($data);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 15, 9:40 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
126589
Default Alt Text
InlineQueryResultVoice.php (2 KB)

Event Timeline