libtd-ktx / kotlinx.telegram.coroutines / sendCustomRequest
sendCustomRequest
suspend fun TelegramFlow.sendCustomRequest(method: String?, parameters: String?): CustomRequestResult
Suspend function, which sends a custom request; for bots only.
Parameters
method - The method name.
parameters - JSON-serialized method parameters.
Return CustomRequestResult Contains the result of a custom request.