Package com.pengrad.telegrambot.impl
Class TelegramBotClient
java.lang.Object
com.pengrad.telegrambot.impl.TelegramBotClient
public class TelegramBotClient
extends java.lang.Object
stas
5/1/16.
-
Constructor Summary
Constructors Constructor Description TelegramBotClient(okhttp3.OkHttpClient client, com.google.gson.Gson gson, java.lang.String baseUrl)
-
Method Summary
Modifier and Type Method Description <T extends BaseRequest<T, R>, R extends BaseResponse>
Rsend(BaseRequest<T,R> request)
<T extends BaseRequest<T, R>, R extends BaseResponse>
voidsend(T request, Callback<T,R> callback)
void
shutdown()
-
Constructor Details
-
TelegramBotClient
public TelegramBotClient(okhttp3.OkHttpClient client, com.google.gson.Gson gson, java.lang.String baseUrl)
-
-
Method Details
-
send
public <T extends BaseRequest<T, R>, R extends BaseResponse> void send(T request, Callback<T,R> callback) -
send
-
shutdown
public void shutdown()
-