tdlib-ruby: The README.md example doesn't work
My Gemfile:
gem 'dry-configurable', '0.15.0'
gem 'tdlib-ruby'
Trying to run the example from the current README and getting only the following:
/home/yart/work/alcom/coding/tapp/vendor/bundle/ruby/3.2.0/gems/dry-configurable-0.15.0/lib/dry/configurable/dsl.rb:28:in `initialize' [dry-configurable] passing a constructor as a block is deprecated and will be removed in the next major version
Provide a `constructor:` keyword argument instead
/home/yart/work/alcom/coding/tapp/vendor/bundle/ruby/3.2.0/gems/dry-configurable-0.15.0/lib/dry/configurable/dsl.rb:28:in `initialize' [dry-configurable] default value as positional argument to settings is deprecated and will be removed in the nex
t major version
Provide a `default:` keyword argument instead
/home/yart/work/alcom/coding/tapp/vendor/bundle/ruby/3.2.0/gems/dry-configurable-0.15.0/lib/dry/configurable/dsl.rb:28:in `initialize' [dry-configurable] default value as positional argument to settings is deprecated and will be removed in the nex
t major version
Provide a `default:` keyword argument instead
I’ve been tried ruby 2.7.8 and 3.2.2 — the same result.
The last warning has been repeated several times. And that’s all this code does.
I’ve changed the dry-configurable version according to this issue: https://github.com/southbridgeio/tdlib-ruby/issues/62. I had the same error before.
Who can help me, guys?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15
this might come in handy. I got the authorisation and method of receiving messages from the channel working(text and photo), but when I’m trying to get a video post:
I saw at the very bottom of the documentation information about using ./bin/parse and tried to run:
be sure to take note of: https://github.com/southbridgeio/tdlib-schema/blob/master/bin/parser#L3 After that, everything worked.
Thanks, i forgot this part: a small update
set_tdlib_parameters(parameters: TD::Types::TdlibParameters.new(**@config).to_hash)hereOr
to change only one gem instead of two.
Tdlib changed input params for setTdlibParameters.
https://github.com/tdlib/td/issues/2211#issuecomment-1327625869
@KonstantinReido I didn’t have a time for this yet. But I remember about the problem.
Sure. I have an assumption that the problem in one of the following places: