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

auth is NilClass #36

@LainLayer

Description

@LainLayer
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions