mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Add get only Session field to TelegramClient
Revert "Add get only Session field to TelegramClient"
This reverts commit c66e722b79.
Add Session readonly field to TelegramClient
Add Session readonly field which let user read session properties like current logged-in user's Username & etc.
This commit is contained in:
parent
4a663d89b3
commit
c42d99cfaa
|
|
@ -29,6 +29,11 @@ namespace TLSharp.Core
|
|||
private List<TLDcOption> 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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue