medias = %w(path/to/image1.jpg path/to/image2.jpg)
media_ids = medias.map do |path|
client.upload File.new path
end
options[:media_ids] = media_ids.join(',')
tweet = client.create_direct_message(receiver, text, options)
Can anybody tell me how to do this and if it is possible?Thanks!
--
You received this message because you are subscribed to the Google Groups "Twitter Ruby Gem" group.
To post to this group, send email to twitter-ruby-gem@googlegroups.com.
Visit this group at https://groups.google.com/group/twitter-ruby-gem.