mtproto v57.0.0-alpha MTProto.DC
Helpers to dealing with Telegram Data Centers
Summary
Functions
Function to choose server depend on reconnect
client state, current DC id and DC list
Types
dc_list()
dc_list :: [%TL.DcOption{id: term, ip_address: term, ipv6: term, media_only: term, port: term, tcpo_only: term}]
Functions
Function to choose server depend on reconnect
client state, current DC id and DC list.
- reconnect == {:dc, dc_id} - client should connect to specific DC.
- reconnect == :random - means that client should randomly choose server from DC list;
- reconnect == _any - means that it’s first client connection or accidental error, use default address;