module Telegrammer
  module DataTypes
    # Telegram Update data type.
    #
    # @attr [Integer] update_id The update‘s unique identifier. Update identifiers start from a certain positive number and increase sequentially.
    # @attr [Telegrammer::DataTypes::Message] message Optional. New incoming message of any kind - text, photo, sticker, etc.
    # @attr [Telegrammer::DataTypes::InlineQuery] inline_query Optional. New incoming inline query.
    #
    # See more at https://core.telegram.org/bots/api#update
    class Update < Telegrammer::DataTypes::Base
      attribute :update_id, Integer
      attribute :message, Message
      attribute :inline_query, InlineQuery
    end
  end
end

module Telegrammer
  module DataTypes
    # Telegram Update data type.
    #
    # @attr [Integer] update_id The update‘s unique identifier. Update identifiers start from a certain positive number and increase sequentially.
    # @attr [Telegrammer::DataTypes::Message] message Optional. New incoming message of any kind - text, photo, sticker, etc.
    # @attr [Telegrammer::DataTypes::InlineQuery] inline_query Optional. New incoming inline query.
    # @attr [Telegrammer::DataTypes::ChosenInlineResult] chosen_inline_result Optional. The result of an inline query that was chosen by a user and sent to their chat partner.
    #
    # See more at https://core.telegram.org/bots/api#update
    class Update < Telegrammer::DataTypes::Base
      attribute :update_id, Integer
      attribute :message, Message
      attribute :inline_query, InlineQuery
      attribute :chosen_inline_result, ChosenInlineResult
    end
  end
end

Support for collecting inline feedback
Support for collecting inline feedback
