Skip to content

Commit

Permalink
Add vCard field for Contact related entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
noplanman committed Jul 31, 2018
1 parent eecaa5f commit 8587bbf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Entities/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* @method string getFirstName() Contact's first name
* @method string getLastName() Optional. Contact's last name
* @method int getUserId() Optional. Contact's user identifier in Telegram
* @method string getVcard() Optional. Additional data about the contact in the form of a vCard
*/
class Contact extends Entity
{
Expand Down
2 changes: 2 additions & 0 deletions src/Entities/InlineQuery/InlineQueryResultContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* @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 getThumbUrl() Optional. Url of the thumbnail for the result
Expand All @@ -47,6 +48,7 @@
* @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 setThumbUrl(string $thumb_url) Optional. Url of the thumbnail for the result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,19 @@
* 'phone_number' => '',
* 'first_name' => '',
* 'last_name' => '',
* 'vcard' => '',
* ];
* </code>
*
* @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 $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
*/
class InputContactMessageContent extends InlineEntity implements InputMessageContent
{
Expand Down

0 comments on commit 8587bbf

Please sign in to comment.