module Telegram::Auth

Constants

VERSION

Public Class Methods

configure() { |instance| ... } click to toggle source
# File lib/telegram/auth.rb, line 13
def self.configure(&block)
  yield(Configuration.instance) if block_given?
end
configure!(&blk) click to toggle source
# File lib/telegram/auth.rb, line 17
def self.configure!(&blk)
  configure(&blk)
  Configuration.instance.verify!
end
create(hash:, **field_data) { |error| ... } click to toggle source
# File lib/telegram/auth.rb, line 22
def self.create(hash:, **field_data)
  verification = Verification.new(hash, Fields.new(field_data))
  success = verification.process
  yield(verification.error) if !success && block_given?
  success
end
logger() click to toggle source
# File lib/telegram/auth.rb, line 33
def self.logger
  @logger
end
logger=(logger) click to toggle source
# File lib/telegram/auth.rb, line 29
def self.logger=(logger)
  @logger = logger
end