Skip to content

Commit 5c72714

Browse files
Update README.md
1 parent fc70aeb commit 5c72714

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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

3744
Add 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

0 commit comments

Comments
 (0)