Class: TD::Types::InputInlineQueryResult::Contact

Inherits:
TD::Types::InputInlineQueryResult show all
Defined in:
lib/tdlib/types/input_inline_query_result/contact.rb

Overview

Represents a user contact.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#contactTD::Types::Contact

User contact.

Returns:



14
15
16
# File 'lib/tdlib/types/input_inline_query_result/contact.rb', line 14

def contact
  @contact
end

#idTD::Types::String

Unique identifier of the query result.

Returns:

  • (TD::Types::String)

    the current value of id



14
15
16
# File 'lib/tdlib/types/input_inline_query_result/contact.rb', line 14

def id
  @id
end

#input_message_contentTD::Types::InputMessageContent

The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageInvoice, inputMessageLocation, TD::Types::InputMessageContent::Venue or inputMessageContact.

Returns:



14
15
16
# File 'lib/tdlib/types/input_inline_query_result/contact.rb', line 14

def input_message_content
  @input_message_content
end

#reply_markupTD::Types::ReplyMarkup

The message reply markup. Must be of type ReplyMarkup::InlineKeyboard or null.

Returns:



14
15
16
# File 'lib/tdlib/types/input_inline_query_result/contact.rb', line 14

def reply_markup
  @reply_markup
end

#thumbnail_heightInteger

Thumbnail height, if known.

Returns:

  • (Integer)

    the current value of thumbnail_height



14
15
16
# File 'lib/tdlib/types/input_inline_query_result/contact.rb', line 14

def thumbnail_height
  @thumbnail_height
end

#thumbnail_urlTD::Types::String

URL of the result thumbnail, if it exists.

Returns:

  • (TD::Types::String)

    the current value of thumbnail_url



14
15
16
# File 'lib/tdlib/types/input_inline_query_result/contact.rb', line 14

def thumbnail_url
  @thumbnail_url
end

#thumbnail_widthInteger

Thumbnail width, if known.

Returns:

  • (Integer)

    the current value of thumbnail_width



14
15
16
# File 'lib/tdlib/types/input_inline_query_result/contact.rb', line 14

def thumbnail_width
  @thumbnail_width
end