Sha256: 5a212fbc8dd1ca5b5c3c4b52167f4375198f37a27657b702eef8890a08a0ead4

Contents?: true

Size: 599 Bytes

Versions: 2

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

require 'logger'
require 'json'
require 'faraday'
require 'faraday/multipart'
require 'zeitwerk'
require 'dry-struct'

module Telegram
  module Bot
    class << self
      attr_writer :configuration
    end

    def self.configuration
      @configuration ||= Configuration.new
    end

    def self.configure
      yield(configuration)
    end
  end
end

loader = Zeitwerk::Loader.new
loader.inflector = Zeitwerk::GemInflector.new(__FILE__)
loader.inflector.inflect('endpoints' => 'ENDPOINTS')
loader.push_dir("#{__dir__}/bot", namespace: Telegram::Bot)
loader.setup

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.1.0 lib/telegram/bot.rb
telegram-bot-ruby-2.0.0 lib/telegram/bot.rb