зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-09-04 02:05:52 +03:00
Fixed controller crashes on unsupported update types
Этот коммит содержится в:
@@ -27,19 +27,7 @@ module Telegram
|
||||
|
||||
# Stubs session.
|
||||
def session
|
||||
@_session ||= Testing::SessionHash.new
|
||||
end
|
||||
|
||||
class SessionHash < Session::SessionHash
|
||||
def initialize
|
||||
@data = {}
|
||||
@loaded = true
|
||||
@exists = true
|
||||
end
|
||||
|
||||
alias_method :destroy, :clear
|
||||
alias_method :load!, :id
|
||||
alias_method :commit, :id
|
||||
@_session ||= Session::NullSessionHash.new
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Ссылка в новой задаче
Block a user