~fnux/telegram-tl-elixir

937b46f9924da1eced05c36afcb970790a7593ec — Timothée Floure 4 years ago f8f30a1
Somewhat allow to parse future_salts
2 files changed, 3 insertions(+), 3 deletions(-)

M lib/tl/parse.ex
M mix.exs
M lib/tl/parse.ex => lib/tl/parse.ex +2 -2
@@ 171,8 171,8 @@ defmodule TL.Parse do
  defp unbox(:object, data, type) do
    type = Atom.to_string(type) |> String.replace("%","")

    {map, tail} = cond do
      type in ["message"] -> # something wrong about that (WTF!?)
    {map, tail} = cond do # bof
      type in ["message", "future_salt"] ->
        content = :binary.part(data, 0, byte_size(data) - 0)
        decode(type, content, "method_or_predicate")
      true ->

M mix.exs => mix.exs +1 -1
@@ 3,7 3,7 @@ defmodule TL.Mixfile do

  def project do
    [app: :telegram_tl,
     version: "0.0.10-beta",
     version: "0.1.1-beta",
     elixir: "~> 1.4",
     build_embedded: Mix.env == :prod,
     start_permanent: Mix.env == :prod,