Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
data ConnectionState Source #
Describes the current state of the connection to Telegram servers
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 |
Instances
FromJSON ConnectionState Source # | |
Defined in TD.Data.ConnectionState parseJSON :: Value -> Parser ConnectionState # parseJSONList :: Value -> Parser [ConnectionState] # | |
Show ConnectionState Source # | |
Defined in TD.Data.ConnectionState showsPrec :: Int -> ConnectionState -> ShowS # show :: ConnectionState -> String # showList :: [ConnectionState] -> ShowS # | |
Eq ConnectionState Source # | |
Defined in TD.Data.ConnectionState (==) :: ConnectionState -> ConnectionState -> Bool # (/=) :: ConnectionState -> ConnectionState -> Bool # | |
ShortShow ConnectionState Source # | |
Defined in TD.Data.ConnectionState shortShow :: ConnectionState -> String Source # |