Class: Telegram::Bot::Types::ChosenInlineResult
- Defined in:
- sig/telegram/bot/types/chosen_inline_result.rbs
Instance Attribute Summary collapse
-
#from ⇒ User
readonly
Returns the value of attribute from.
-
#inline_message_id ⇒ String?
readonly
Returns the value of attribute inline_message_id.
-
#location ⇒ Location?
readonly
Returns the value of attribute location.
-
#query ⇒ String
readonly
Returns the value of attribute query.
-
#result_id ⇒ String
readonly
Returns the value of attribute result_id.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#from ⇒ User (readonly)
Returns the value of attribute from.
9 10 11 |
# File 'sig/telegram/bot/types/chosen_inline_result.rbs', line 9 def from @from end |
#inline_message_id ⇒ String? (readonly)
Returns the value of attribute inline_message_id.
11 12 13 |
# File 'sig/telegram/bot/types/chosen_inline_result.rbs', line 11 def @inline_message_id end |
#location ⇒ Location? (readonly)
Returns the value of attribute location.
10 11 12 |
# File 'sig/telegram/bot/types/chosen_inline_result.rbs', line 10 def location @location end |
#query ⇒ String (readonly)
Returns the value of attribute query.
12 13 14 |
# File 'sig/telegram/bot/types/chosen_inline_result.rbs', line 12 def query @query end |
#result_id ⇒ String (readonly)
Returns the value of attribute result_id.
8 9 10 |
# File 'sig/telegram/bot/types/chosen_inline_result.rbs', line 8 def result_id @result_id end |
Class Method Details
.new(result_id:, from:, location:, inline_message_id:, query:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/chosen_inline_result.rbs', line 6
def self.new: (result_id: String, from: User, ?location: Location, ?inline_message_id: String, query: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|