Skip to content

Commit 8587bbf

Browse files
committed
Add vCard field for Contact related entities.
1 parent eecaa5f commit 8587bbf

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/Entities/Contact.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* @method string getFirstName() Contact's first name
2020
* @method string getLastName() Optional. Contact's last name
2121
* @method int getUserId() Optional. Contact's user identifier in Telegram
22+
* @method string getVcard() Optional. Additional data about the contact in the form of a vCard
2223
*/
2324
class Contact extends Entity
2425
{

src/Entities/InlineQuery/InlineQueryResultContact.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
* @method string getPhoneNumber() Contact's phone number
3838
* @method string getFirstName() Contact's first name
3939
* @method string getLastName() Optional. Contact's last name
40+
* @method string getVcard() Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
4041
* @method InlineKeyboard getReplyMarkup() Optional. Inline keyboard attached to the message
4142
* @method InputMessageContent getInputMessageContent() Optional. Content of the message to be sent instead of the contact
4243
* @method string getThumbUrl() Optional. Url of the thumbnail for the result
@@ -47,6 +48,7 @@
4748
* @method $this setPhoneNumber(string $phone_number) Contact's phone number
4849
* @method $this setFirstName(string $first_name) Contact's first name
4950
* @method $this setLastName(string $last_name) Optional. Contact's last name
51+
* @method $this setVcard(string $vcard) Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
5052
* @method $this setReplyMarkup(InlineKeyboard $reply_markup) Optional. Inline keyboard attached to the message
5153
* @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the contact
5254
* @method $this setThumbUrl(string $thumb_url) Optional. Url of the thumbnail for the result

src/Entities/InputMessageContent/InputContactMessageContent.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@
2222
* 'phone_number' => '',
2323
* 'first_name' => '',
2424
* 'last_name' => '',
25+
* 'vcard' => '',
2526
* ];
2627
* </code>
2728
*
2829
* @method string getPhoneNumber() Contact's phone number
2930
* @method string getFirstName() Contact's first name
3031
* @method string getLastName() Optional. Contact's last name
32+
* @method string getVcard() Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
3133
*
3234
* @method $this setPhoneNumber(string $phone_number) Contact's phone number
3335
* @method $this setFirstName(string $first_name) Contact's first name
3436
* @method $this setLastName(string $last_name) Optional. Contact's last name
37+
* @method $this setVcard(string $vcard) Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
3538
*/
3639
class InputContactMessageContent extends InlineEntity implements InputMessageContent
3740
{

0 commit comments

Comments
 (0)