lib/telegram/bot/updates_controller/message_context.rb
def action_for_message_context(context)
          action = context.to_s
          return action if action_method?(action)
          raise AbstractController::ActionNotFound,
            "The context action '#{action}' is not found in #{self.class.name}"
        end
# Returns action name for message context. By default it's the same as context name.
# Raises AbstractController::ActionNotFound if action is not available.
# This differs from other cases where invalid actions are silently ignored,
# because message context is controlled by developer, and users are not able
# to construct update to run any specific context.
Returns action name for message context. By default it's the same as context name.
Raises AbstractController::ActionNotFound if action is not available.
This differs from other cases where invalid actions are silently ignored,
because message context is controlled by developer, and users are not able
to construct update to run any specific context.
Returns action name for message context . By default it ' s the same as context name . Raises AbstractController :: ActionNotFound if action is not available . This differs from other cases where invalid actions are silently ignored because message context is controlled by developer and users are not able to construct update to run any specific context .
def action_for_message_context(context)
          action = context.to_s
          return action if action_method?(action)
          raise AbstractController::ActionNotFound,
            "The context action '#{action}' is not found in #{self.class.name}"
        end
def action_for_message_context ( context ) action = context . to_s return action if action_method? ( action ) raise AbstractController :: ActionNotFound , "The context action '#{action}' is not found in #{self.class.name}" end
Returns action name for message context.
Returns action name for message context .
context