mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 22:47:00 +00:00
- Updated README
This commit is contained in:
parent
0351c0f1df
commit
066e9cacfe
3 changed files with 123 additions and 27 deletions
|
|
@ -69,8 +69,7 @@ namespace TLSharp.Tests
|
|||
[TestMethod]
|
||||
public async Task AuthUser()
|
||||
{
|
||||
var store = new FileSessionStore();
|
||||
var client = new TelegramClient(store, "session", apiId, apiHash);
|
||||
var client = new TelegramClient(apiId, apiHash);
|
||||
|
||||
await client.ConnectAsync();
|
||||
|
||||
|
|
@ -86,8 +85,7 @@ namespace TLSharp.Tests
|
|||
[TestMethod]
|
||||
public async Task SendMessageTest()
|
||||
{
|
||||
var store = new FileSessionStore();
|
||||
var client = new TelegramClient(store, "session", apiId, apiHash);
|
||||
var client = new TelegramClient(apiId, apiHash);
|
||||
|
||||
await client.ConnectAsync();
|
||||
|
||||
|
|
@ -106,8 +104,7 @@ namespace TLSharp.Tests
|
|||
[TestMethod]
|
||||
public async Task SendMessageToChannelTest()
|
||||
{
|
||||
var store = new FileSessionStore();
|
||||
var client = new TelegramClient(store, "session", apiId, apiHash);
|
||||
var client = new TelegramClient(apiId, apiHash);
|
||||
|
||||
await client.ConnectAsync();
|
||||
|
||||
|
|
@ -123,8 +120,7 @@ namespace TLSharp.Tests
|
|||
[TestMethod]
|
||||
public async Task SignUpNewUser()
|
||||
{
|
||||
var store = new FileSessionStore();
|
||||
var client = new TelegramClient(store, "session", apiId, apiHash);
|
||||
var client = new TelegramClient(apiId, apiHash);
|
||||
await client.ConnectAsync();
|
||||
|
||||
var hash = await client.SendCodeRequestAsync(NotRegisteredNumberToSignUp);
|
||||
|
|
@ -141,8 +137,7 @@ namespace TLSharp.Tests
|
|||
[TestMethod]
|
||||
public async Task CheckPhones()
|
||||
{
|
||||
var store = new FileSessionStore();
|
||||
var client = new TelegramClient(store, "session", apiId, apiHash);
|
||||
var client = new TelegramClient(apiId, apiHash);
|
||||
await client.ConnectAsync();
|
||||
|
||||
var result = await client.IsPhoneRegisteredAsync(NumberToAuthenticate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue