Class: Telegram::Bot::Types::InlineQueryResultContact
- Defined in:
- sig/telegram/bot/types/inline_query_result_contact.rbs
Instance Attribute Summary collapse
-
#first_name ⇒ String
readonly
Returns the value of attribute first_name.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#input_message_content ⇒ input_message_content?
readonly
Returns the value of attribute input_message_content.
-
#last_name ⇒ String?
readonly
Returns the value of attribute last_name.
-
#phone_number ⇒ String
readonly
Returns the value of attribute phone_number.
-
#reply_markup ⇒ InlineKeyboardMarkup?
readonly
Returns the value of attribute reply_markup.
-
#thumbnail_height ⇒ Integer?
readonly
Returns the value of attribute thumbnail_height.
-
#thumbnail_url ⇒ String?
readonly
Returns the value of attribute thumbnail_url.
-
#thumbnail_width ⇒ Integer?
readonly
Returns the value of attribute thumbnail_width.
-
#type ⇒ String
readonly
Returns the value of attribute type.
-
#vcard ⇒ String?
readonly
Returns the value of attribute vcard.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#first_name ⇒ String (readonly)
Returns the value of attribute first_name.
11 12 13 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 11 def first_name @first_name end |
#id ⇒ String (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 9 def id @id end |
#input_message_content ⇒ input_message_content? (readonly)
Returns the value of attribute input_message_content.
15 16 17 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 15 def @input_message_content end |
#last_name ⇒ String? (readonly)
Returns the value of attribute last_name.
12 13 14 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 12 def last_name @last_name end |
#phone_number ⇒ String (readonly)
Returns the value of attribute phone_number.
10 11 12 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 10 def phone_number @phone_number end |
#reply_markup ⇒ InlineKeyboardMarkup? (readonly)
Returns the value of attribute reply_markup.
14 15 16 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 14 def reply_markup @reply_markup end |
#thumbnail_height ⇒ Integer? (readonly)
Returns the value of attribute thumbnail_height.
18 19 20 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 18 def thumbnail_height @thumbnail_height end |
#thumbnail_url ⇒ String? (readonly)
Returns the value of attribute thumbnail_url.
16 17 18 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 16 def thumbnail_url @thumbnail_url end |
#thumbnail_width ⇒ Integer? (readonly)
Returns the value of attribute thumbnail_width.
17 18 19 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 17 def thumbnail_width @thumbnail_width end |
#type ⇒ String (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 8 def type @type end |
#vcard ⇒ String? (readonly)
Returns the value of attribute vcard.
13 14 15 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 13 def vcard @vcard end |
Class Method Details
.new(type:, id:, phone_number:, first_name:, last_name:, vcard:, reply_markup:, input_message_content:, thumbnail_url:, thumbnail_width:, thumbnail_height:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/inline_query_result_contact.rbs', line 6
def self.new: (?type: String, id: String, phone_number: String, first_name: String, ?last_name: String, ?vcard: String, ?reply_markup: InlineKeyboardMarkup, ?input_message_content: input_message_content, ?thumbnail_url: String, ?thumbnail_width: Integer, ?thumbnail_height: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|