lib/telegram/bot/updates_controller/message_context.rb
def action_for_message
          val = message_context_session.delete(:context)
          context = val && val.to_s
          super || context && begin
            args = payload['text'].try!(:split) || []
            action = action_for_message_context(context)
            [[action, type: :message_context, context: context], args]
          end
        end
# Fetches context and finds handler for it. If message has new command,
# it has higher priority than contextual action.
Fetches context and finds handler for it. If message has new command,
it has higher priority than contextual action.
Fetches context and finds handler for it . If message has new command it has higher priority than contextual action .
def action_for_message
          val = message_context_session.delete(:context)
          context = val && val.to_s
          super || context && begin
            args = payload['text'].try!(:split) || []
            action = action_for_message_context(context)
            [[action, type: :message_context, context: context], args]
          end
        end
def action_for_message val = message_context_session . delete ( :context ) context = val && val . to_s super || context && begin args = payload [ 'text' ] . try! ( :split ) || [ ] action = action_for_message_context ( context ) [ [ action , type : :message_context , context : context ] , args ] end end
Fetches context and finds handler for it.
Fetches context and finds handler for it .