mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 14:37:04 +00:00
Small improvements
This commit is contained in:
parent
9cc6942088
commit
69700fdad0
2 changed files with 3 additions and 20 deletions
|
|
@ -46,7 +46,7 @@ namespace TLSharp.Tests
|
|||
await client.Connect();
|
||||
|
||||
var hash = await client.SendCodeRequest(NumberToAuthenticate);
|
||||
var code = "64443"; // you can change code in debugger
|
||||
var code = "93463"; // you can change code in debugger
|
||||
|
||||
var user = await client.MakeAuth(NumberToAuthenticate, hash, code);
|
||||
|
||||
|
|
@ -144,7 +144,7 @@ namespace TLSharp.Tests
|
|||
|
||||
Assert.IsNotNull(res);
|
||||
|
||||
var hist = await client.GetHistory(res.Value, 0, -1, 5);
|
||||
var hist = await client.GetMessagesHistoryForContact(res.Value, 0, 5);
|
||||
|
||||
Assert.IsNotNull(hist);
|
||||
}
|
||||
|
|
@ -195,12 +195,5 @@ namespace TLSharp.Tests
|
|||
Assert.IsNotNull(authKey.AuthKey.Data);
|
||||
}
|
||||
}
|
||||
|
||||
static byte[] GetBytes(string str)
|
||||
{
|
||||
byte[] bytes = new byte[str.Length * sizeof(char)];
|
||||
System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length);
|
||||
return bytes;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue