From c66e722b79ca61e2a5b35acc7c517aee8b1f443c Mon Sep 17 00:00:00 2001 From: Felony Date: Wed, 2 Oct 2019 18:18:42 +0330 Subject: [PATCH] Add get only Session field to TelegramClient --- TLSharp.Core/TelegramClient.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TLSharp.Core/TelegramClient.cs b/TLSharp.Core/TelegramClient.cs index d9f0454..ebd17f2 100644 --- a/TLSharp.Core/TelegramClient.cs +++ b/TLSharp.Core/TelegramClient.cs @@ -29,6 +29,11 @@ namespace TLSharp.Core private List dcOptions; private TcpClientConnectionHandler _handler; + public Session Session + { + get { return _session; } + } + public TelegramClient(int apiId, string apiHash, ISessionStore store = null, string sessionUserId = "session", TcpClientConnectionHandler handler = null) {