class Telegram::Bot::Types::CallbackQuery
Attributes
chat_instance[RW]
data[RW]
from[RW]
game_short_name[RW]
id[RW]
inline_message_id[RW]
message[RW]
Public Class Methods
new(attributes)
click to toggle source
# 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
Public Instance Methods
from=(attributes)
click to toggle source
# File lib/telegram/bot/types/callback_query.rb, line 15 def from=(attributes) @from = User.new(attributes) end
message=(attributes)
click to toggle source
# File lib/telegram/bot/types/callback_query.rb, line 19 def message=(attributes) @message = Message.new(attributes) end