Module contact

Source
Expand description

Contacts module

Structsยง

Contact
An object representing a single contact in memory.
ContactId
Contact ID, including reserved IDs.
RecentlySeenInterrupt ๐Ÿ”’
RecentlySeenLoop ๐Ÿ”’

Enumsยง

Modifier ๐Ÿ”’
Origin
Possible origins of a contact.

Constantsยง

SEEN_RECENTLY_SECONDS ๐Ÿ”’
Time during which a contact is considered as seen recently.

Functionsยง

cat_fingerprint ๐Ÿ”’
import_vcard
Imports contacts from the given vCard.
import_vcard_contact ๐Ÿ”’
make_vcard
Returns a vCard containing contacts with the given ids.
may_be_valid_addr
Returns false if addr is an invalid address, otherwise true.
set_blocked ๐Ÿ”’
set_profile_image ๐Ÿ”’
Set profile image for a contact.
set_status ๐Ÿ”’
Sets contact status.
split_address_book ๐Ÿ”’
update_chat_names ๐Ÿ”’
update_last_seen ๐Ÿ”’
Updates last seen timestamp of the contact if it is earlier than the given timestamp.