Hi Henry,
At the moment Blather can only receive files and can't send them.
Your Jabber client doesn't show the "send file" available because you
should advertise your bot's capabilities first.
Sorry, I don't have an example on how to do that with the latest
trunk, but I suppose Ben should have one.
To receive files in your bot you should write a file-transfer handler:
client.register_handler :file_transfer do |iq|
transfer = Blather::FileTransfer.new(client, iq)
transfer.accept(Blather::FileTransfer::SimpleFileReceiver, "/path/to/
save/#{iq.si.file["name"]}", iq.si.file["size"].to_i)
end
For more examples please see
http://blather.squishtech.com/yard/Blather/Stanza/Iq/Si.html