Class: Telegram::Bot::Types::Update

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Update

Returns a new instance of Update.



14
15
16
# File 'lib/telegram/bot/types/update.rb', line 14

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

Instance Attribute Details

#callback_queryObject

Returns the value of attribute callback_query.



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

def callback_query
  @callback_query
end

#channel_postObject

Returns the value of attribute channel_post.



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

def channel_post
  @channel_post
end

#chosen_inline_resultObject

Returns the value of attribute chosen_inline_result.



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

def chosen_inline_result
  @chosen_inline_result
end

#edited_channel_postObject

Returns the value of attribute edited_channel_post.



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

def edited_channel_post
  @edited_channel_post
end

#edited_messageObject

Returns the value of attribute edited_message.



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

def edited_message
  @edited_message
end

#inline_queryObject

Returns the value of attribute inline_query.



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

def inline_query
  @inline_query
end

#messageObject

Returns the value of attribute message.



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

def message
  @message
end

#pre_checkout_queryObject

Returns the value of attribute pre_checkout_query.



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

def pre_checkout_query
  @pre_checkout_query
end

#shipping_queryObject

Returns the value of attribute shipping_query.



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

def shipping_query
  @shipping_query
end

#update_idObject

Returns the value of attribute update_id.



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

def update_id
  @update_id
end