1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-04 02:05:52 +03:00

Extract Botan-related code from Client to Botan::ClientHelpers

Этот коммит содержится в:
Max Melentiev
2016-08-09 15:27:27 +06:00
родитель 27602b20bd
Коммит 85ff07de9b
5 изменённых файлов: 44 добавлений и 13 удалений

Просмотреть файл

@@ -10,6 +10,7 @@ module Telegram
autoload :TypedResponse, 'telegram/bot/client/typed_response'
extend Initializers
prepend Botan::ClientHelpers
include DebugClient
class << self
@@ -31,9 +32,9 @@ module Telegram
end
end
attr_reader :client, :token, :username, :base_uri, :botan
attr_reader :client, :token, :username, :base_uri
def initialize(token = nil, username = nil, botan: nil, **options)
def initialize(token = nil, username = nil, **options)
@client = HTTPClient.new
@token = token || options[:token]
@username = username || options[:username]