Sexy.TDL.Backend (Sexy v0.9.13)

Copy Markdown View Source

GenServer managing the Erlang Port to the tdlib_json_cli binary.

Handles line-buffering of port output, ANSI stripping, and error parsing. Forwards complete JSON lines to Sexy.TDL.Handler and system/proxy events to the app process.

Started automatically by Sexy.TDL.Riser — not called directly.

Proxy support

When opened with proxy: true, the binary is wrapped in proxychains4. Requires a proxy.conf file at <tdlib_data_root>/<session>/proxy.conf.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(arg)

Callback implementation for GenServer.init/1.

start_link(arg)