code: @Override
      public ChatMember getChatMember(ChatId chat_id, long user_id) throws IOException {
          AnalyticsData data = new AnalyticsData("getChatMember");
          IOException ioException = null;
          ChatMember chatMember = null;
          data.setValue("chat_id", chat_id);
          data.setValue("user_id", user_id);
          try {
              chatMember = bot.getChatMember(chat_id, user_id);
              data.setReturned(chatMember);
          } catch (IOException e) {
              ioException = e;
              data.setIoException(ioException);
          }
          analyticsWorker.putData(data);
          if (ioException != null) {
              throw ioException;
          }
          return chatMember;
      }
docs: Use this method to get information about a member of a chat.
  
  @param chat_id Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
  @param user_id Unique identifier of the target user
  @return On success, returns a ChatMember object
  @throws IOException an exception is thrown in case of any service call failures