tg_client v0.3.0 TgClient.Session
Worker for dealing with telegram-cli session.
Summary
Functions
Put confirmation code to stdio
Connects a session with phone
Return current session status
Put password to stdio
Send request to TCP connection
Starts a session with phone
Types
Functions
Specs
confirm(non_neg_integer | String.t, non_neg_integer) :: atom
Put confirmation code to stdio
Specs
connect(non_neg_integer | String.t) :: {:ok, atom}
Connects a session with phone
Specs
current_status(non_neg_integer | String.t) :: {:ok, atom}
Return current session status
Specs
put_password(non_neg_integer | String.t, non_neg_integer) :: atom
Put password to stdio
Specs
Send request to TCP connection
Specs
start_link(non_neg_integer | String.t) :: GenServer.on_start
Starts a session with phone