зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-07 11:25:52 +03:00
Simplified .wrap method, added for Botan
Этот коммит содержится в:
@@ -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
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user