telegram-rb icon indicating copy to clipboard operation
telegram-rb copied to clipboard

NoMethodError: undefined method `confirmation_code='

Open duhanov opened this issue 7 years ago • 1 comments

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

duhanov avatar Jan 05 '18 20:01 duhanov

@duhanov Did you get a solution for this?

brenoperucchi avatar Sep 10 '19 20:09 brenoperucchi