1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 09:36:54 +01:00
MadelineProto/docs/TD_docs/constructors/contact.md
2017-07-23 16:11:02 +02:00

1.0 KiB

title description
contact Describes user contact

Constructor: contact

Back to constructors index

Describes user contact

Attributes:

Name Type Required Description
phone_number string Yes User's phone number
first_name string Yes User first name, 1-255 characters
last_name string Yes User last name
user_id int Yes User identifier if known, 0 otherwise

Type: Contact

Example:

$contact = ['_' => 'contact', 'phone_number' => string, 'first_name' => string, 'last_name' => string, 'user_id' => int, ];

PWRTelegram json-encoded version:

{"_":"contact","phone_number":"string","first_name":"string","last_name":"string","user_id":"int"}

Or, if you're into Lua:

contact={_='contact', phone_number=string, first_name=string, last_name=string, user_id=int, }