Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629256
InlineQueryResultContact.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
InlineQueryResultContact.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 InlineQueryResultContact
*
* @link https://core.telegram.org/bots/api#inlinequeryresultcontact
*
* <code>
* $data = [
* 'id' => '',
* 'phone_number' => '',
* 'first_name' => '',
* 'last_name' => '',
* 'reply_markup' => <InlineKeyboard>,
* 'input_message_content' => <InputMessageContent>,
* 'thumbnail_url' => '',
* 'thumbnail_width' => 30,
* 'thumbnail_height' => 30,
* ];
* </code>
*
* @method string getType() Type of the result, must be contact
* @method string getId() Unique identifier for this result, 1-64 Bytes
* @method string getPhoneNumber() Contact's phone number
* @method string getFirstName() Contact's first name
* @method string getLastName() Optional. Contact's last name
* @method string getVcard() Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
* @method InlineKeyboard getReplyMarkup() Optional. Inline keyboard attached to the message
* @method InputMessageContent getInputMessageContent() Optional. Content of the message to be sent instead of the contact
* @method string getThumbnailUrl() Optional. Url of the thumbnail for the result
* @method int getThumbnailWidth() Optional. Thumbnail width
* @method int getThumbnailHeight() Optional. Thumbnail height
*
* @method $this setId(string $id) Unique identifier for this result, 1-64 Bytes
* @method $this setPhoneNumber(string $phone_number) Contact's phone number
* @method $this setFirstName(string $first_name) Contact's first name
* @method $this setLastName(string $last_name) Optional. Contact's last name
* @method $this setVcard(string $vcard) Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
* @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 contact
* @method $this setThumbnailUrl(string $thumbnail_url) Optional. Url of the thumbnail for the result
* @method $this setThumbnailWidth(int $thumbnail_width) Optional. Thumbnail width
* @method $this setThumbnailHeight(int $thumbnail_height) Optional. Thumbnail height
*/
class
InlineQueryResultContact
extends
InlineEntity
implements
InlineQueryResult
{
/**
* InlineQueryResultContact constructor
*
* @param array $data
*/
public
function
__construct
(
array
$data
=
[
]
)
{
$data
[
'type'
]
=
'contact'
;
parent
::
__construct
(
$data
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 15, 6:22 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
125596
Default Alt Text
InlineQueryResultContact.php (3 KB)
Attached To
Mode
R123 php-telegram-bot
Attached
Detach File
Event Timeline