Skip to content

class Tourmaline::InputContactMessageContent
inherits Reference #

Represents the content of a contact message to be sent as the result of an inline query.

Included modules

JSON::Serializable

Constructors#

.new(phone_number, first_name, last_name : String? = nil, vcard : String? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#first_name : String #

Contact's first name

View source

#first_name=(first_name : String) #

Contact's first name

View source

#last_name : String? #

Optional. Contact's last name

View source

#last_name=(last_name : String?) #

Optional. Contact's last name

View source

#phone_number : String #

Contact's phone number

View source

#phone_number=(phone_number : String) #

Contact's phone number

View source

#vcard : String? #

Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes

View source

#vcard=(vcard : String?) #

Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes

View source