tg_client v0.1.2 TgClient.Connection

Connection with Telegram-CLI TCP server.

Summary

Functions

Starts connection with port

Types

state :: %TgClient.Connection.State{failure_count: non_neg_integer, host: charlist, port: non_neg_integer, socket: port | nil}

Functions

start_link(port)

Specs

start_link(non_neg_integer) :: GenServer.on_start

Starts connection with port