Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F627689
InlineQueryResultArticle.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
3 KB
Referenced Files
None
Subscribers
None
InlineQueryResultArticle.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 InlineQueryResultArticle
*
* @link https://core.telegram.org/bots/api#inlinequeryresultarticle
*
* <code>
* $data = [
* 'id' => '',
* 'title' => '',
* 'input_message_content' => <InputMessageContent>,
* 'reply_markup' => <InlineKeyboard>,
* 'url' => '',
* 'hide_url' => true,
* 'description' => '',
* 'thumb_url' => '',
* 'thumb_width' => 30,
* 'thumb_height' => 30,
* ];
* </code>
*
* @method string getType() Type of the result, must be article
* @method string getId() Unique identifier for this result, 1-64 Bytes
* @method string getTitle() Title of the result
* @method InputMessageContent getInputMessageContent() Content of the message to be sent
* @method InlineKeyboard getReplyMarkup() Optional. Inline keyboard attached to the message
* @method string getUrl() Optional. URL of the result
* @method bool getHideUrl() Optional. Pass True, if you don't want the URL to be shown in the message
* @method string getDescription() Optional. Short description of the result
* @method string getThumbUrl() Optional. Url of the thumbnail for the result
* @method int getThumbWidth() Optional. Thumbnail width
* @method int getThumbHeight() Optional. Thumbnail height
*
* @method $this setId(string $id) Unique identifier for this result, 1-64 Bytes
* @method $this setTitle(string $title) Title of the result
* @method $this setInputMessageContent(InputMessageContent $input_message_content) Content of the message to be sent
* @method $this setReplyMarkup(InlineKeyboard $reply_markup) Optional. Inline keyboard attached to the message
* @method $this setUrl(string $url) Optional. URL of the result
* @method $this setHideUrl(bool $hide_url) Optional. Pass True, if you don't want the URL to be shown in the message
* @method $this setDescription(string $description) Optional. Short description of the result
* @method $this setThumbUrl(string $thumb_url) Optional. Url of the thumbnail for the result
* @method $this setThumbWidth(int $thumb_width) Optional. Thumbnail width
* @method $this setThumbHeight(int $thumb_height) Optional. Thumbnail height
*/
class
InlineQueryResultArticle
extends
InlineEntity
implements
InlineQueryResult
{
/**
* InlineQueryResultArticle constructor
*
* @param array $data
*/
public
function
__construct
(
array
$data
=
[
]
)
{
$data
[
'type'
]
=
'article'
;
parent
::
__construct
(
$data
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 15, 2:32 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
118031
Default Alt Text
InlineQueryResultArticle.php (3 KB)
Attached To
Mode
R123 php-telegram-bot
Attached
Detach File
Event Timeline