Module: Telegram::Bot::UpdatesController::MessageContext

Extended by:
ActiveSupport::Concern
Includes:
Session
Defined in:
lib/telegram/bot/updates_controller/message_context.rb

Overview

Allows to store context in session and treat next message according to this context.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from Session

#process_action

Instance Method Details

#cancelObject

Action to clear context.



52
53
54
# File 'lib/telegram/bot/updates_controller/message_context.rb', line 52

def cancel
  # Context is already cleared in action_for_message
end