module Telegram::Bot::UpdatesController::Session::ClassMethods
Public Instance Methods
build_session(key, store = session_store)
click to toggle source
Builds session with given key and optional store (default to session_store). This way it's easier to define multiple custom sessions, ex. one for group chat and one for user.
# File lib/telegram/bot/updates_controller/session.rb, line 15 def build_session(key, store = session_store) raise 'session_store is not configured' unless store key ? SessionHash.new(store, key) : NullSessionHash.new end