mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 06:55:06 +00:00
- Updated README
This commit is contained in:
parent
0351c0f1df
commit
066e9cacfe
3 changed files with 123 additions and 27 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue