Class: Telegrammer::DataTypes::ChosenInlineResult

Inherits:
Base
  • Object
show all
Defined in:
lib/telegrammer/data_types/chosen_inline_result.rb

Overview

Telegram ChosenInlineResult data type

See more at core.telegram.org/bots/api#choseninlineresult

Instance Attribute Summary collapse

Instance Attribute Details

#fromTelegrammer::DataTypes::User

The user that chose the result.

Returns:



10
11
12
# File 'lib/telegrammer/data_types/chosen_inline_result.rb', line 10

def from
  @from
end

#queryString

The query that was used to obtain the result.

Returns:

  • (String)

    the current value of query



10
11
12
# File 'lib/telegrammer/data_types/chosen_inline_result.rb', line 10

def query
  @query
end

#result_idString

The unique identifier for the result that was chosen.

Returns:

  • (String)

    the current value of result_id



10
11
12
# File 'lib/telegrammer/data_types/chosen_inline_result.rb', line 10

def result_id
  @result_id
end