@Test public void getChat() throws MalformedURLException, URISyntaxException { Chat chat = bot.execute(new GetChat(groupId)).chat(); ChatTest.checkChat(chat, true); assertEquals(Chat.Type.supergroup, chat.type()); assertTrue(chat.title().contains("Test Bot Group")); assertTrue(chat.description().contains("New desc")); assertEquals(Integer.valueOf(10), chat.slowModeDelay()); assertNotNull(new URL(chat.inviteLink()).toURI()); if (chat.pinnedMessage() != null) MessageTest.checkMessage(chat.pinnedMessage()); assertNull(chat.allMembersAreAdministrators()); assertNull(chat.stickerSetName()); assertNull(chat.canSetStickerSet()); chat = bot.execute(new GetChat(chatId)).chat(); assertNotNull(chat.firstName()); assertNotNull(chat.lastName()); }
public <T extends BaseRequest<T, R>, R extends BaseResponse> R execute(BaseRequest<T, R> request) { return api.send(request); }
TelegramBot { public <T extends BaseRequest<T, R>, R extends BaseResponse> R execute(BaseRequest<T, R> request) { return api.send(request); } }
TelegramBot { public <T extends BaseRequest<T, R>, R extends BaseResponse> R execute(BaseRequest<T, R> request) { return api.send(request); } TelegramBot(String botToken);   TelegramBot(Builder builder); }
TelegramBot { public <T extends BaseRequest<T, R>, R extends BaseResponse> R execute(BaseRequest<T, R> request) { return api.send(request); } TelegramBot(String botToken);   TelegramBot(Builder builder); R execute(BaseRequest<T, R> request); void execute(T request, Callback<T, R> callback); String getFullFilePath(File file); byte[] getFileContent(File file); void setUpdatesListener(UpdatesListener listener); void setUpdatesListener(UpdatesListener listener, GetUpdates request); void setUpdatesListener(UpdatesListener listener, ExceptionHandler exceptionHandler); void setUpdatesListener(UpdatesListener listener, ExceptionHandler exceptionHandler, GetUpdates request); void removeGetUpdatesListener(); }
TelegramBot { public <T extends BaseRequest<T, R>, R extends BaseResponse> R execute(BaseRequest<T, R> request) { return api.send(request); } TelegramBot(String botToken);   TelegramBot(Builder builder); R execute(BaseRequest<T, R> request); void execute(T request, Callback<T, R> callback); String getFullFilePath(File file); byte[] getFileContent(File file); void setUpdatesListener(UpdatesListener listener); void setUpdatesListener(UpdatesListener listener, GetUpdates request); void setUpdatesListener(UpdatesListener listener, ExceptionHandler exceptionHandler); void setUpdatesListener(UpdatesListener listener, ExceptionHandler exceptionHandler, GetUpdates request); void removeGetUpdatesListener();  }