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

NoMethodError: undefined method `confirmation_code=' #34

Open
duhanov opened this issue Jan 5, 2018 · 1 comment
Open

NoMethodError: undefined method `confirmation_code=' #34

duhanov opened this issue Jan 5, 2018 · 1 comment

Comments

@duhanov
Copy link

duhanov commented Jan 5, 2018

code:

  telegram = Telegram::Client.new do |cfg, auth|
    cfg.daemon = '/usr/local/src/tg/bin/telegram-cli'
    cfg.key = '/usr/local/src/tg/tg-server.pub'
    cfg.sock = '/home/telegramd/tg.sock'
   cfg.logger = Logger.new(STDOUT) # optional, default logger will be created if not set
   auth.phone_number = '+xxxxxxxxxx'
    
    auth.confirmation_code = -> { '40988' }
  end

Error:

NoMethodError: undefined method `confirmation_code=' for #Telegram::AuthProperties:0x0000000b7917a0

@brenoperucchi
Copy link

@duhanov Did you get a solution for this?

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

2 participants