     |> URI.encode_query()
   end
 
-  defp message_response(_conn, []) do
+  defp message_response([]) do
     %{
       text: "Sorry! I couldn't find any podcasts with that. How about \"Serial\"?"
     }
   end
 
-  defp message_response(conn, podcasts) do
+  defp message_response(podcasts) do
     %{
       attachment: %{
         type: "template",
         payload: %{
           template_type: "generic",
-          elements: Enum.map(podcasts, &(podcast_json(conn, &1)))
+          elements: Enum.map(podcasts, &(podcast_json(&1)))
         }
       }
     }
   end
 
-  defp podcast_json(conn, podcast) do
+  defp podcast_json(podcast) do
     [episode | _rest] = podcast.episodes
     host = Application.get_env(:pan, :bot)[:host]
     %{

    |> send_resp(200, "ok")
  end

  defp respond_to_message(conn, message, sender_id) do
    data = %{
      recipient: %{
        id: sender_id
      },
      message: message_response(conn, podcasts_from_query(message))
    }
    |> Poison.encode!


        },
        %{
          type: "web_url",
          url: host <> episode_frontend_path(Pan.Endpoint, :player, episode),
          messenger_extensions: true,
          webview_height_ratio: "tall",
          title: "🎧 Latest episode"
