lib/ex_gram/commands.ex
defmodule ExGram.Commands do
@moduledoc """
OLD. Can it be removed?
"""
def handle_command(handler, %{text: t} = m) do
if t == handler.cmd do
handler.execute(m)
end
end
end
defmodule ExGram.Commands do
@moduledoc """
OLD. Can it be removed?
"""
def handle_command(handler, %{text: t} = m) do
if t == handler.cmd do
handler.execute(m)
end
end
end