Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630070
InlineQueryResultCachedPhoto.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
InlineQueryResultCachedPhoto.php
View Options
<?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 InlineQueryResultCachedPhoto
*
* @link https://core.telegram.org/bots/api#inlinequeryresultcachedphoto
*
* <code>
* $data = [
* 'id' => '',
* 'photo_file_id' => '',
* 'title' => '',
* 'description' => '',
* 'caption' => '',
* 'reply_markup' => <InlineKeyboard>,
* 'input_message_content' => <InputMessageContent>,
* ];
* </code>
*
* @method string getType() Type of the result, must be photo
* @method string getId() Unique identifier for this result, 1-64 bytes
* @method string getPhotoFileId() A valid file identifier of the photo
* @method string getTitle() Optional. Title for the result
* @method string getDescription() Optional. Short description of the result
* @method string getCaption() Optional. Caption of the photo to be sent, 0-200 characters
* @method InlineKeyboard getReplyMarkup() Optional. Inline keyboard attached to the message
* @method InputMessageContent getInputMessageContent() Optional. Content of the message to be sent instead of the photo
*
* @method $this setId(string $id) Unique identifier for this result, 1-64 bytes
* @method $this setPhotoFileId(string $photo_file_id) A valid file identifier of the photo
* @method $this setTitle(string $title) Optional. Title for the result
* @method $this setDescription(string $description) Optional. Short description of the result
* @method $this setCaption(string $caption) Optional. Caption of the photo to be sent, 0-200 characters
* @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 photo
*/
class
InlineQueryResultCachedPhoto
extends
InlineEntity
implements
InlineQueryResult
{
/**
* InlineQueryResultCachedPhoto constructor
*
* @param array $data
*/
public
function
__construct
(
array
$data
=
[
]
)
{
$data
[
'type'
]
=
'photo'
;
parent
::
__construct
(
$data
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 15, 8:34 AM (23 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
139052
Default Alt Text
InlineQueryResultCachedPhoto.php (2 KB)
Attached To
Mode
R123 php-telegram-bot
Attached
Detach File
Event Timeline