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