sendAsync

suspend fun sendAsync(to: String, via: TelegramBot): Deferred<Response<out ReturnType>>

Make a request for action returning its Response.

Parameters

to

Recipient

via

Instance of the bot through which the request will be made.


suspend fun sendAsync(to: Long, via: TelegramBot): Deferred<Response<out ReturnType>>
inline suspend fun sendAsync(to: User, via: TelegramBot): Deferred<Response<out ReturnType>>
inline suspend fun sendAsync(to: Chat, via: TelegramBot): Deferred<Response<out ReturnType>>