IRequestSender.

SendRequestAsync<TResult>(IRequest<TResult>, CancellationToken) Method

Summary

Send custom requests
Namespace
OpenTl.ClientApi.MtProto
Containing Type
IRequestSender

Syntax

Task<TResult> SendRequestAsync<TResult>(IRequest<TResult> request, CancellationToken cancellationToken)

Type Parameters

Name Description
TResult Request result type

Parameters

Name Type Description
request IRequest<TResult> Request
cancellationToken CancellationToken Cancellation token

Return Value

Type Description
Task<TResult> Result