class Telegram::API::InputContactMessageContent

Overview

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

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

Instance methods inherited from class Telegram::API::Type

==(other) ==, client client

Constructor methods inherited from class Telegram::API::Type

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(phone_number : String, first_name : String, last_name : String | Nil = nil, vcard : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

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


[View source]

Instance Method Detail

def first_name : String #

Contact's first name


[View source]
def first_name=(first_name : String) #

Contact's first name


[View source]
def last_name : String | Nil #

Optional. Contact's last name


[View source]
def last_name=(last_name : String | Nil) #

Optional. Contact's last name


[View source]
def phone_number : String #

Contact's phone number


[View source]
def phone_number=(phone_number : String) #

Contact's phone number


[View source]
def vcard : String | Nil #

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


[View source]
def vcard=(vcard : String | Nil) #

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


[View source]