You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 27, 2020. It is now read-only.
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