class Hamilton::Types::Contact

Overview

This object represents a phone contact.

Included Modules

Defined in:

types/contact.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def first_name : String #

Contact's first name.


def first_name=(first_name : String) #

Contact's first name.


def last_name : String | Nil #

Contact's last name.


def last_name=(last_name : String | Nil) #

Contact's last name.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def phone_number : String #

Contact's phone number.


def phone_number=(phone_number : String) #

Contact's phone number.


def user_id : Int64 | Nil #

Contact's user identifier in Telegram.


def user_id=(user_id : Int64 | Nil) #

Contact's user identifier in Telegram.


def vcard : String | Nil #

Additional data about the contact in the form of a vCard.


def vcard=(vcard : String | Nil) #

Additional data about the contact in the form of a vCard.