InlineQueryResultContact
class InlineQueryResultContact implements InlineQueryResultInterface
Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.
Methods
No description
Type of the result, must be contact.
Unique identifier for this result, 1-64 Bytes.
Contact's phone number.
Contact's first name.
Optional. Contact's last name.
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
Optional. Inline keyboard attached to the message.
Optional. Content of the message to be sent instead of the contact.
Optional. Url of the thumbnail for the result.
Optional. Thumbnail width.
Optional. Thumbnail height.
Details
at line 23
__construct(string $type, string $id, string $phone_number, string $first_name, string|null $last_name = null, string|null $vcard = null, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null, string|null $thumb_url = null, int|null $thumb_width = null, int|null $thumb_height = null)
No description
at line 41
string
getType()
Type of the result, must be contact.
at line 49
string
getId()
Unique identifier for this result, 1-64 Bytes.
at line 57
string
getPhoneNumber()
Contact's phone number.
at line 65
string
getFirstName()
Contact's first name.
at line 73
string|null
getLastName()
Optional. Contact's last name.
at line 81
string|null
getVcard()
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.
at line 89
InlineKeyboardMarkup|null
getReplyMarkup()
Optional. Inline keyboard attached to the message.
at line 97
InputMessageContentInterface|null
getInputMessageContent()
Optional. Content of the message to be sent instead of the contact.
at line 105
string|null
getThumbUrl()
Optional. Url of the thumbnail for the result.
at line 113
int|null
getThumbWidth()
Optional. Thumbnail width.
at line 121
int|null
getThumbHeight()
Optional. Thumbnail height.