class Tourmaline::InputContactMessageContent
- Tourmaline::InputContactMessageContent
- Reference
- Object
Overview
Represents the content of a contact message to be sent as the result of an inline query.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(phone_number : String, first_name : String, last_name : String | Nil = nil, vcard : String | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#first_name : String
Contact's first name
-
#first_name=(first_name : String)
Contact's first name
-
#last_name : String | Nil
Optional.
-
#last_name=(last_name : String | Nil)
Optional.
-
#phone_number : String
Contact's phone number
-
#phone_number=(phone_number : String)
Contact's phone number
-
#vcard : String | Nil
Optional.
-
#vcard=(vcard : String | Nil)
Optional.
Constructor Detail
def self.new(phone_number : String, first_name : String, last_name : String | Nil = nil, vcard : String | Nil = nil)
#
Instance Method Detail
def vcard : String | Nil
#
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
def vcard=(vcard : String | Nil)
#
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes