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.

NoMethodError: undefined method `confirmation_code=' #34

@duhanov

Description

@duhanov

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

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