Знаю id юзера и чата, но выдает:
at org.telegram.telegrambots.meta.api.methods.groupadministration.GetChatMember.deserializeResponse(GetChatMember.java:73)
at org.telegram.telegrambots.meta.api.methods.groupadministration.GetChatMember.deserializeResponse(GetChatMember.java:21)
at org.telegram.telegrambots.bots.DefaultAbsSender.sendApiMethod(DefaultAbsSender.java:725)
at org.telegram.telegrambots.meta.bots.AbsSender.execute(AbsSender.java:47)
Мой код:
GetChatMember getMember = new GetChatMember();
getMember.setUserId(user.getId());
ChatMember theChatMember;
for (Channel c : channels) {
getMember.setChatId(c.getId());
theChatMember = execute(getMember);
if ("left".equalsIgnoreCase(theChatMember.getStatus())) {
return false;
}
Как мне получить chatMember?