diff --git a/TLSharp.Core/TelegramClient.cs b/TLSharp.Core/TelegramClient.cs index a4fa06a..228c9b5 100644 --- a/TLSharp.Core/TelegramClient.cs +++ b/TLSharp.Core/TelegramClient.cs @@ -377,8 +377,15 @@ namespace TLSharp.Core _session.SessionExpires = int.MaxValue; _session.Save(); - } - + } + + public bool IsConnected() + { + if (this._transport == null) + return false; + return this._transport.IsConnected; + } + public void Dispose() { if (_transport != null)