@Test public void getChatMember() { restrictChatMember(); ChatMember chatMember = bot.execute(new GetChatMember(groupId, memberBot)).chatMember(); ChatMemberTest.check(chatMember); assertEquals(ChatMember.Status.restricted, chatMember.status()); assertEquals(Integer.valueOf(0), chatMember.untilDate()); assertNull(chatMember.canPostMessages()); assertNull(chatMember.canEditMessages()); assertTrue(chatMember.isMember()); assertTrue(chatMember.canChangeInfo()); assertTrue(chatMember.canInviteUsers()); assertTrue(chatMember.canPinMessages()); assertTrue(chatMember.canSendPolls()); assertTrue(chatMember.canSendMessages()); assertFalse(chatMember.canSendMediaMessages()); assertFalse(chatMember.canSendOtherMessages()); assertFalse(chatMember.canAddWebPagePreviews()); }
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();  }