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

Simplified .wrap method, added for Botan

Этот коммит содержится в:
Max Melentiev
2016-05-18 21:09:45 +03:00
родитель 91e0aa2096
Коммит 27602b20bd
11 изменённых файлов: 169 добавлений и 92 удалений

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

@@ -9,7 +9,7 @@ module Telegram
if self == ClientStub || !ClientStub.stub_all?
super
else
ClientStub.new(args[1])
ClientStub.new(*args)
end
end
end
@@ -34,8 +34,8 @@ module Telegram
end
end
def initialize(username = nil)
@username = username
def initialize(token = nil, username = nil, **options)
@username = username || options[:username] || token
reset
end