haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.ConnectionState

Synopsis

Documentation

data ConnectionState Source #

Describes the current state of the connection to Telegram servers

Constructors

ConnectionStateWaitingForNetwork

Waiting for the network to become available. Use setNetworkType to change the available network type

ConnectionStateConnectingToProxy

Establishing a connection with a proxy server

ConnectionStateConnecting

Establishing a connection to the Telegram servers

ConnectionStateUpdating

Downloading data expected to be received while the application was offline

ConnectionStateReady

There is a working connection to the Telegram servers