southbridgeio / tdlib-ruby

Ruby bindings and client for TDLib
MIT License
95 stars 48 forks source link

Promise not getting result #23

Closed leonua closed 5 years ago

leonua commented 5 years ago

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?

vladislav-yashin commented 5 years ago

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

leonua commented 5 years ago

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

leonua commented 5 years ago

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