mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-18 12:55:16 +00:00
Add Session getter-only property to TelegramClient
Add Session readonly field which lets the developer read session properties like current logged-in user's Username et-al. https://github.com/sochix/TLSharp/pull/875
This commit is contained in:
parent
4a663d89b3
commit
8a15feea7c
1 changed files with 5 additions and 0 deletions
|
|
@ -29,6 +29,11 @@ namespace TLSharp.Core
|
||||||
private List<TLDcOption> dcOptions;
|
private List<TLDcOption> dcOptions;
|
||||||
private TcpClientConnectionHandler _handler;
|
private TcpClientConnectionHandler _handler;
|
||||||
|
|
||||||
|
public Session Session
|
||||||
|
{
|
||||||
|
get { return _session; }
|
||||||
|
}
|
||||||
|
|
||||||
public TelegramClient(int apiId, string apiHash,
|
public TelegramClient(int apiId, string apiHash,
|
||||||
ISessionStore store = null, string sessionUserId = "session", TcpClientConnectionHandler handler = null)
|
ISessionStore store = null, string sessionUserId = "session", TcpClientConnectionHandler handler = null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue