class Telegram::Bot::Types::Update
Attributes
callback_query[RW]
channel_post[RW]
chosen_inline_result[RW]
edited_channel_post[RW]
edited_message[RW]
inline_query[RW]
message[RW]
pre_checkout_query[RW]
shipping_query[RW]
update_id[RW]
Public Class Methods
new(attributes)
click to toggle source
# 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
Public Instance Methods
callback_query=(attributes)
click to toggle source
# File lib/telegram/bot/types/update.rb, line 42 def callback_query=(attributes) @callback_query = CallbackQuery.new(attributes) end
channel_post=(attributes)
click to toggle source
# File lib/telegram/bot/types/update.rb, line 26 def channel_post=(attributes) @channel_post = Message.new(attributes) end
chosen_inline_result=(attributes)
click to toggle source
# File lib/telegram/bot/types/update.rb, line 38 def chosen_inline_result=(attributes) @chosen_inline_result = ChosenInlineResult.new(attributes) end
edited_channel_post=(attributes)
click to toggle source
# File lib/telegram/bot/types/update.rb, line 30 def edited_channel_post=(attributes) @edited_channel_post = Message.new(attributes) end
edited_message=(attributes)
click to toggle source
# File lib/telegram/bot/types/update.rb, line 22 def edited_message=(attributes) @edited_message = Message.new(attributes) end
inline_query=(attributes)
click to toggle source
# File lib/telegram/bot/types/update.rb, line 34 def inline_query=(attributes) @inline_query = InlineQuery.new(attributes) end
message=(attributes)
click to toggle source
# File lib/telegram/bot/types/update.rb, line 18 def message=(attributes) @message = Message.new(attributes) end
pre_checkout_query=(attributes)
click to toggle source
# File lib/telegram/bot/types/update.rb, line 50 def pre_checkout_query=(attributes) @pre_checkout_query = PreCheckoutQuery.new(attributes) end
shipping_query=(attributes)
click to toggle source
# File lib/telegram/bot/types/update.rb, line 46 def shipping_query=(attributes) @shipping_query = ShippingQuery.new(attributes) end