- Updated README

This commit is contained in:
Ilya P 2016-10-11 17:31:30 +03:00
parent 0351c0f1df
commit 066e9cacfe
3 changed files with 123 additions and 27 deletions

View file

@ -23,8 +23,11 @@ namespace TLSharp.Core
private Session _session;
private List<TLDcOption> dcOptions;
public TelegramClient(ISessionStore store, string sessionUserId, int apiId, string apiHash)
public TelegramClient(int apiId, string apiHash, ISessionStore store = null, string sessionUserId = "session")
{
if (store == null)
store = new FileSessionStore();
TLContext.Init();
_apiHash = apiHash;
_apiId = apiId;