MadelineProtoDocs/old_docs/API_docs_v25/constructors/contact.md
2019-12-27 17:48:04 +01:00

799 B

title description image
contact A contact of the current user that is registered in the system. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: contact

Back to constructors index

A contact of the current user that is registered in the system.

Attributes:

Name Type Required Description
user_id int Yes User identifier
mutual Bool Yes Current user is in the user's contact list

Type: Contact

Example:

$contact = ['_' => 'contact', 'user_id' => int, 'mutual' => Bool];

Or, if you're into Lua:

contact={_='contact', user_id=int, mutual=Bool}