Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

auth is NilClass #36

Open
LainLayer opened this issue Feb 10, 2018 · 2 comments
Open

auth is NilClass #36

LainLayer opened this issue Feb 10, 2018 · 2 comments

Comments

@LainLayer
Copy link

telegram = Telegram::Client.new do |cfg, auth|
  cfg.daemon = '~/tg/bin/telegram-cli'
  cfg.key = '~/tg/tg-server.pub'
  cfg.logger = Logger.new(STDOUT)
  puts cfg.class, auth.class
  auth.phone_number = '+whatever'
  auth.confirmation_code = -> { gets.strip.to_i }
end

i get:

main.rb:9:in `block (2 levels) in <main>': undefined method `phone_number=' for nil:NilClass (NoMethodError)
@alexwiththescar
Copy link

Same, what did i miss?

@brayancastrop
Copy link

Try using github master branch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants