File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,13 @@ http://rpms.southbridge.ru/rhel6/stable/SRPMS/
3232| 2.1 | → | 1.5 |
3333| 2.2 | → | 1.6 |
3434
35+ IMPORTANT: From version 3.0 types schema is extracted to a separate gem: https://github.com/southbridgeio/tdlib-schema
36+ If you want to support specific tdlib version, just set a dependency in your Gemfile:
37+
38+ ``` ruby
39+ gem ' tdlib-schema' , ' ~> 1.7.0'
40+ ```
41+
3542## Install
3643
3744Add to your gemfile:
@@ -85,15 +92,15 @@ begin
8592 when :wait_phone_number
8693 puts ' Please, enter your phone number:'
8794 phone = STDIN .gets .strip
88- client.set_authentication_phone_number(phone, nil ).wait
95+ client.set_authentication_phone_number(phone_number: phone, settings: nil ).wait
8996 when :wait_code
9097 puts ' Please, enter code from SMS:'
9198 code = STDIN .gets .strip
92- client.check_authentication_code(code).wait
99+ client.check_authentication_code(code: code ).wait
93100 when :wait_password
94101 puts ' Please, enter 2FA password:'
95102 password = STDIN .gets .strip
96- client.check_authentication_password(password).wait
103+ client.check_authentication_password(password: password ).wait
97104 when :ready
98105 client.get_me.then { |user | @me = user }.rescue { |err | puts " error: #{ err } " }.wait
99106 break
You can’t perform that action at this time.
0 commit comments