contacts.contactIDToContactNumber
Get a contact number from a contact ID.
contactID number
contactNumber number (< 1 if not found)
local contactID = contacts.contactIDToContactNumber(1234)
if(contactID < 1) then
print("Contact not found")
else
print("Contact ID: " .. contactID)
end