Sha256: 40fb5192dc598505609adafc8e2837ad6c3161417c4963dd06d514dfebd76c28

Contents?: true

Size: 389 Bytes

Versions: 5

Compression:

Stored size: 389 Bytes

Contents

module Bot
  module Message
    class Photo < Base
      def initialize(to, photo_url, suggested_responses=false, options={})
        self.message = {
          'type'      => 'gallery',
          'to'        => to,
          'picUrl'    => photo_url,
          'typeTime'  => 0,
        }.merge(options)

        self.suggested_responses = suggested_responses
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bot-0.0.43 lib/bot/messages/photo.rb
bot-0.0.42 lib/bot/messages/photo.rb
bot-0.0.41 lib/bot/messages/photo.rb
bot-0.0.40 lib/bot/messages/photo.rb
bot-0.0.39 lib/bot/messages/photo.rb