- Update layer to 23

- Start implementing get user by userName
This commit is contained in:
Ilya Pirozhneko 2016-02-01 23:39:39 +03:00
parent e281f281dd
commit 1dce594e43
6 changed files with 63 additions and 1 deletions

View file

@ -72,6 +72,21 @@ namespace TLSharp.Tests
Assert.IsNotNull(res);
}
[TestMethod]
public async Task ImportByUserName()
{
var store = new FileSessionStore();
var client = new TelegramClient(store, "session");
await client.Connect();
Assert.IsTrue(client.IsUserAuthorized());
var res = await client.ImportByUserName(NumberToSendMessage);
Assert.IsNotNull(res);
}
[TestMethod]
public async Task SendMessage()
{