Class: Telegram::Bot::Types::CallbackQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/callback_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ CallbackQuery

Returns a new instance of CallbackQuery.



11
12
13
# File 'lib/telegram/bot/types/callback_query.rb', line 11

def initialize(attributes)
  attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k }
end

Instance Attribute Details

#chat_instanceObject

Returns the value of attribute chat_instance.



3
4
5
# File 'lib/telegram/bot/types/callback_query.rb', line 3

def chat_instance
  @chat_instance
end

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/telegram/bot/types/callback_query.rb', line 3

def data
  @data
end

#fromObject

Returns the value of attribute from.



3
4
5
# File 'lib/telegram/bot/types/callback_query.rb', line 3

def from
  @from
end

#game_short_nameObject

Returns the value of attribute game_short_name.



3
4
5
# File 'lib/telegram/bot/types/callback_query.rb', line 3

def game_short_name
  @game_short_name
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/telegram/bot/types/callback_query.rb', line 3

def id
  @id
end

#inline_message_idObject

Returns the value of attribute inline_message_id.



3
4
5
# File 'lib/telegram/bot/types/callback_query.rb', line 3

def inline_message_id
  @inline_message_id
end

#messageObject

Returns the value of attribute message.



3
4
5
# File 'lib/telegram/bot/types/callback_query.rb', line 3

def message
  @message
end