lib/telegram/bot/updates_controller/commands.rb
# If payload is a message with command, then returned action is an
# action for this command.
# Separate method, so it can be easily overriden (ex. MessageContext).
#
# This is not used for edited messages/posts. It process them as basic updates.
If payload is a message with command, then returned action is an
action for this command.
Separate method, so it can be easily overriden (ex.

This is not used for edited messages/posts. It process them as basic updates.
If payload is a message with command then returned action is an action for this command . Separate method so it can be easily overriden ( ex . This is not used for edited messages / posts . It process them as basic updates .
def action_for_message
          cmd, args = Commands.command_from_text(payload['text'], bot_username)
          return unless cmd
          [[action_for_command(cmd), type: :command, command: cmd], args]
        end
def action_for_message cmd , args = Commands . command_from_text ( payload [ 'text' ] , bot_username ) return unless cmd [ [ action_for_command ( cmd ) , type : :command , command : cmd ] , args ] end
If payload is a message with command, then returned action is an
action for this command.
If payload is a message with command then returned action is an action for this command .