@Test public void sendChatAction() { assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.typing.name())).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.typing)).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.upload_photo)).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.record_video)).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.upload_video)).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.record_audio)).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.upload_audio)).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.upload_document)).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.find_location)).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.record_video_note)).isOk()); assertTrue(bot.execute(new SendChatAction(chatId, ChatAction.upload_video_note)).isOk()); }
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();  }