southbridgeio / tdlib-ruby

Ruby bindings and client for TDLib
MIT License
94 stars 45 forks source link

Setting TDLib options #33

Closed mib32 closed 4 years ago

mib32 commented 4 years ago

How to set the options like prefer_ipv6 as shown in https://core.telegram.org/tdlib/options ?

vladislav-yashin commented 4 years ago

https://github.com/southbridgeio/tdlib-ruby/blob/33e3467abc38054ef39f2a147c92dff5c6439e5d/lib/tdlib/client_methods.rb#L3621

Something like

client.set_option('notification_group_count_max', TD::Types::OptionValue::Integer.new(value: 25))
mib32 commented 4 years ago

@funk-yourself Aha, spasibo very much!