mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-08 16:05:53 +00:00
Added possibility to do ping request (SendPingAsync method)
This commit is contained in:
parent
ca78532b34
commit
8b2f227142
5 changed files with 70 additions and 3 deletions
|
|
@ -174,7 +174,7 @@ namespace TLSharp.Core
|
|||
{
|
||||
await _sender.Send(methodToExecute);
|
||||
await _sender.Receive(methodToExecute);
|
||||
|
||||
|
||||
var result = methodToExecute.GetType().GetProperty("Response").GetValue(methodToExecute);
|
||||
|
||||
return (T)result;
|
||||
|
|
@ -292,6 +292,11 @@ namespace TLSharp.Core
|
|||
return result;
|
||||
}
|
||||
|
||||
public async Task SendPingAsync()
|
||||
{
|
||||
await _sender.SendPingAsync();
|
||||
}
|
||||
|
||||
private void OnUserAuthenticated(TLUser TLUser)
|
||||
{
|
||||
_session.TLUser = TLUser;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue