README.md in tdlib-ruby-0.9.4 vs README.md in tdlib-ruby-1.0.0
- old
+ new
@@ -98,9 +98,17 @@
end
p @me
```
+## TD::Client#broadcast
+
+From version 1.0 TD::Client##broadcast returns [Concurrent::Promise](http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Promise.html) object.
+
+```ruby
+ me = client.broadcast('@type' => 'getMe').then { |result| puts result }.rescue { |error| puts error }.value
+```
+
## Configuration
```ruby
TD.configure do |config|
config.lib_path = 'path/to/dir_containing_libtdjson' # libtdson will be searched in this directory (*.so, *.dylib, *.dll are valid extensions). For Rails projects, if not set, will be considered as project_root_path/vendor. If not set and file doesn't exist in vendor, it will try to find lib by ldconfig (only on Linux).