disconnect()

Client.disconnect()

Disconnect the client from Telegram servers.

Raises:

ConnectionError – In case you try to disconnect an already disconnected client or in case you try to disconnect a client that needs to be terminated first.