telegram-rb
telegram-rb copied to clipboard
NoMethodError: undefined method `confirmation_code='
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 Did you get a solution for this?