southbridgeio/tdlib-ruby

Promise not getting result

leonua opened this issue · 3 comments

trying to launch example code, and faced problem that this code gives timeout error:

client.get_me.then { |user| @me = user }.rescue { |err| puts "error: #{err}" }.wait

but debugging shows that command is sent and result is received by tdlib

here is debug output http://prntscr.com/oajc6h

do you have an idea what is broken or how to fix?

Which version of tdlib do you use? Bindings are not compatible with the latest 1.4 version yet.

Probably latest from git... so just downgrade to 1.3 I suppose. Thanks!

Probably to update 'Compatibility table' on README.md :)