1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* This file is part of the TelegramBot package. |
4
|
|
|
* |
5
|
|
|
* (c) Avtandil Kikabidze aka LONGMAN <[email protected]> |
6
|
|
|
* |
7
|
|
|
* For the full copyright and license information, please view the LICENSE |
8
|
|
|
* file that was distributed with this source code. |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
namespace Longman\TelegramBot\Entities\InlineQuery; |
12
|
|
|
|
13
|
|
|
use Longman\TelegramBot\Entities\InlineKeyboard; |
14
|
|
|
use Longman\TelegramBot\Entities\InputMessageContent\InputMessageContent; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* Class InlineQueryResultCachedAudio |
18
|
|
|
* |
19
|
|
|
* @link https://core.telegram.org/bots/api#inlinequeryresultcachedaudio |
20
|
|
|
* |
21
|
|
|
* <code> |
22
|
|
|
* $data = [ |
23
|
|
|
* 'id' => '', |
24
|
|
|
* 'audio_file_id' => '', |
25
|
|
|
* 'reply_markup' => <InlineKeyboard>, |
26
|
|
|
* 'input_message_content' => <InputMessageContent>, |
27
|
|
|
* ]; |
28
|
|
|
* </code> |
29
|
|
|
* |
30
|
|
|
* @method string getType() Type of the result, must be audio |
31
|
|
|
* @method string getId() Unique identifier for this result, 1-64 bytes |
32
|
|
|
* @method string getAudioFileId() A valid file identifier for the audio file |
33
|
|
|
* @method InlineKeyboard getReplyMarkup() Optional. An Inline keyboard attached to the message |
34
|
|
|
* @method InputMessageContent getInputMessageContent() Optional. Content of the message to be sent instead of the audio |
35
|
|
|
* |
36
|
|
|
* @method $this setId(string $id) Unique identifier for this result, 1-64 bytes |
37
|
|
|
* @method $this setAudioFileId(string $audio_file_id) A valid file identifier for the audio file |
38
|
|
|
* @method $this setReplyMarkup(InlineKeyboard $reply_markup) Optional. An Inline keyboard attached to the message |
39
|
|
|
* @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the audio |
40
|
|
|
*/ |
41
|
|
|
class InlineQueryResultCachedAudio extends InlineEntity |
42
|
|
|
{ |
43
|
|
|
/** |
44
|
|
|
* InlineQueryResultCachedAudio constructor |
45
|
|
|
* |
46
|
|
|
* @param array $data |
47
|
|
|
* |
48
|
|
|
* @throws \Longman\TelegramBot\Exception\TelegramException |
49
|
|
|
*/ |
50
|
|
|
public function __construct(array $data = []) |
51
|
|
|
{ |
52
|
|
|
$data['type'] = 'audio'; |
53
|
|
|
parent::__construct($data); |
54
|
|
|
} |
55
|
|
|
} |
56
|
|
|
|