requestRaw

suspend fun TelegramApi<*>.requestRaw(client: HttpClient, token: String, server: Url?): HttpResponse(source)
suspend fun TelegramApi<*>.requestRaw(client: HttpClient, token: String, server: String? = null): HttpResponse(source)

Request the TelegramApi by client with token.

Parameters

client
token

The bot token in the query API (should with the prefix bot). e.g. "bot<token>" of https://api.telegram.org/bot<token>/METHOD_NAME.

server

The query API server (e.g. "https://example.com"). Default is Telegram.BASE_SERVER_VALUE.