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

Fix storing token in ClientStub when config hash is given

Этот коммит содержится в:
Max Melentiev
2017-05-17 17:45:21 +06:00
родитель b8db576452
Коммит 6e4a69b6b1
4 изменённых файлов: 25 добавлений и 11 удалений

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

@@ -35,7 +35,7 @@ module Telegram
end
def initialize(token = nil, username = nil, **options)
@token = token
@token = token || options[:token]
@username = username || options[:username] || token
reset
end